Skip to content

Commit 39e84f3

Browse files
DoumanAshdjc
authored andcommitted
Apply comments
1 parent 85fb06f commit 39e84f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ 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;
7169
}
70+
71+
tokio::time::sleep(Duration::from_millis(200)).await;
7272
};
7373

7474
serde_json::from_slice(&body)

0 commit comments

Comments
 (0)