Skip to content

Commit

Permalink
Add timeout to token refresh retry
Browse files Browse the repository at this point in the history
  • Loading branch information
DoumanAsh committed Dec 13, 2024
1 parent 40db9ab commit 1d90c3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ impl HttpClient {
retries += 1;
if retries >= RETRY_COUNT {
return Err(err);
} else {
tokio::time::sleep(tokio::time::Duration::from_millis(200)).await;
}
};

Expand Down

0 comments on commit 1d90c3a

Please sign in to comment.