We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52546d0 commit 779cd53Copy full SHA for 779cd53
src/consumer/base_consumer.rs
@@ -671,7 +671,10 @@ where
671
topic: Option<&str>,
672
timeout: T,
673
) -> KafkaResult<Metadata> {
674
- self.client.fetch_metadata(topic, timeout)
+ let to = timeout.into();
675
+ // force credential retrieval
676
+ self.client.poll_event(&self.queue, to);
677
+ self.client.fetch_metadata(topic, to)
678
}
679
680
fn fetch_watermarks<T: Into<Timeout>>(
0 commit comments