Skip to content

Commit

Permalink
Fix logic error so that we always poll at least once even when
Browse files Browse the repository at this point in the history
timeout is `Duration::ZERO`.
  • Loading branch information
davidblewett committed Dec 10, 2024
1 parent 3f2b5b9 commit 204dbe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/producer/base_producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ where
Duration::MAX
};
let mut attempt = 0;
while attempt > 0 && remaining > Duration::ZERO {
while attempt >= 0 && remaining > Duration::ZERO {
let start = Instant::now();
let event = self
.client()
Expand Down

0 comments on commit 204dbe2

Please sign in to comment.