Skip to content

Commit

Permalink
Merge pull request #644 from fede1024/scanterog/return-none-on-rebalance
Browse files Browse the repository at this point in the history
Return back to the caller on rebalance events
  • Loading branch information
davidblewett committed Jan 11, 2024
2 parents 738590b + d6ec6e1 commit 9b44aba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/consumer/base_consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,15 @@ where
}
rdsys::RD_KAFKA_EVENT_REBALANCE => {
self.handle_rebalance_event(event);
if timeout != Timeout::Never {
return None;
}
}
rdsys::RD_KAFKA_EVENT_OFFSET_COMMIT => {
self.handle_offset_commit_event(event);
if timeout != Timeout::Never {
return None;
}
}
_ => {
let buf = unsafe {
Expand Down

0 comments on commit 9b44aba

Please sign in to comment.