Skip to content

Commit

Permalink
support flow messages for batch size of 1 (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
stearnsc authored Oct 22, 2024
1 parent a4012e8 commit 715411c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/consumer/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl<Exe: Executor> ConsumerEngine<Exe> {
})?;
}

if self.remaining_messages < self.batch_size / 2 {
if self.remaining_messages < self.batch_size.div_ceil(2) {
match self
.connection
.sender()
Expand Down

0 comments on commit 715411c

Please sign in to comment.