Function mz_storage::sink::kafka::fetch_partition_count_loop
source ยท async fn fetch_partition_count_loop<F>(
producer: ThreadedProducer<TunnelingClientContext<MzClientContext>>,
sink_id: GlobalId,
topic_name: String,
interval: Duration,
update_partition_count: Arc<F>,
)
Expand description
Fetches the partition count for the identified topic at the specified interval.
When an updated partition count is discovered, invokes
update_partition_count
with the new partition count.