Skip to content

Commit e4fc184

Browse files
djmitchedjc
authored andcommitted
Forward errors on retry, too
1 parent 490c182 commit e4fc184

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bb8/src/inner.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ where
226226
locked.connect_failed(approval);
227227
return Err(e);
228228
} else {
229+
self.inner.forward_error(e);
229230
delay = max(Duration::from_millis(200), delay);
230231
delay = min(self.inner.statics.connection_timeout / 2, delay * 2);
231232
sleep(delay).await;

0 commit comments

Comments
 (0)