Skip to content

Commit 23c2004

Browse files
Actually retry the call based on the value of config.retry
Fixes #47.
1 parent 7db9a13 commit 23c2004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ macro_rules! impl_inner_call {
5454
Err(e) => {
5555
warn!("call retry:{}/{} {:?}", errors.len() + 1 , $self.config.retry(), e);
5656
errors.push(e);
57-
if errors.len() as u8 == $self.config.retry() {
57+
if errors.len() as u8 > $self.config.retry() {
5858
return Err(Error::AllAttemptsErrored(errors));
5959
}
6060

0 commit comments

Comments
 (0)