Skip to content

Commit 7e0502e

Browse files
committed
Update retry.rs
1 parent ec50f79 commit 7e0502e

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

crates/rustapi-extras/src/retry.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,13 @@ impl MiddlewareLayer for RetryLayer {
194194

195195
// Success or no more retries
196196
if attempt > 0 {
197-
tracing::info!(
198-
attempt = attempt + 1,
199-
status = status,
200-
"Request succeeded after retry"
201-
);
202-
}
203-
return response;
197+
tracing::info!(
198+
attempt = attempt + 1,
199+
status = status,
200+
"Request succeeded after retry"
201+
);
204202
}
203+
return response;
205204
}
206205

207206
// Should be unreachable if logic is correct, but safe fallback

0 commit comments

Comments
 (0)