Skip to content

Commit

Permalink
Force auth when fetching Kafka metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-ionescu committed Dec 10, 2024
1 parent 5079920 commit e962c8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/consumer/base_consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,10 @@ where
topic: Option<&str>,
timeout: T,
) -> KafkaResult<Metadata> {
self.client.fetch_metadata(topic, timeout)
let to = timeout.into();
// force credential retrieval
self.client.poll_event(&self.queue, to);
self.client.fetch_metadata(topic, to)
}

fn fetch_watermarks<T: Into<Timeout>>(
Expand Down

0 comments on commit e962c8c

Please sign in to comment.