Open aovestdipaperino opened 1 month ago
fn is_leader(&self, group_id: &str, member_id: &str) -> bool {
self.group_coordinator
.groups
.get(group_id)
.map(|group| group.leader_id.as_deref() == Some(member_id) || group.leader_id.is_none())
.unwrap_or(false)
}
@aovestdipaperino Thanks for your interest in this simple server. I've sent you an invitation to the to-be-open-sourced impl of kafka-rust. Please check your mailbox and try out that software and leave suggestions if anything less than awesome.
I know that group management is in early stage, but with this change I can easily create multiple consumers belonging to the same group: