Function mz_sql::kafka_util::create_consumer
source · pub async fn create_consumer(
connection_context: &ConnectionContext,
kafka_connection: &KafkaConnection,
topic: &str
) -> Result<Arc<BaseConsumer<BrokerRewritingClientContext<MzClientContext>>>, PlanError>
Expand description
Create a new rdkafka::ClientConfig
with the provided
options
,
and test its ability to create an rdkafka::consumer::BaseConsumer
.
Expected to test the output of extract_security_config
.
Panics
options
does not containbootstrap.servers
as a key
Errors
librdkafka
cannot create a BaseConsumer using the providedoptions
.