From fc56860603e0ca872e626765adcdfea8b3bc0ec0 Mon Sep 17 00:00:00 2001 From: parmesant Date: Fri, 20 Dec 2024 22:49:41 +0530 Subject: [PATCH] Feature: Enable Kafka integration (#1021) Fixes #936 --------- Signed-off-by: parmesant Co-authored-by: Nitish Tiwari Co-authored-by: Devdutt Shenoi --- src/cli.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 9021649b5..bec97ad38 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -22,6 +22,7 @@ use std::path::PathBuf; use url::Url; use crate::{ + kafka::SslProtocol, kafka::SslProtocol, oidc::{self, OpenidConfig}, option::{validation, Compression, Mode}, @@ -526,14 +527,10 @@ impl FromArgMatches for Cli { self.trino_username = m.get_one::(Self::TRINO_USER_NAME).cloned(); self.kafka_topics = m.get_one::(Self::KAFKA_TOPICS).cloned(); - self.kafka_security_protocol = m - .get_one::(Self::KAFKA_SECURITY_PROTOCOL) - .cloned(); + self.kafka_host = m.get_one::(Self::KAFKA_HOST).cloned(); self.kafka_group = m.get_one::(Self::KAFKA_GROUP).cloned(); self.kafka_client_id = m.get_one::(Self::KAFKA_CLIENT_ID).cloned(); - self.kafka_security_protocol = m - .get_one::(Self::KAFKA_SECURITY_PROTOCOL) - .cloned(); + self.kafka_security_protocol = m.get_one::(Self::KAFKA_SECURITY_PROTOCOL).cloned(); self.kafka_partitions = m.get_one::(Self::KAFKA_PARTITIONS).cloned(); self.tls_cert_path = m.get_one::(Self::TLS_CERT).cloned();