Skip to content

Commit 85fb06f

Browse files
DoumanAshdjc
authored andcommitted
Add timeout to token refresh retry
1 parent 2085eba commit 85fb06f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/types.rs

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ impl HttpClient {
6666
retries += 1;
6767
if retries >= RETRY_COUNT {
6868
return Err(err);
69+
} else {
70+
tokio::time::sleep(tokio::time::Duration::from_millis(200)).await;
6971
}
7072
};
7173

0 commit comments

Comments
 (0)