Skip to content

Commit fc56860

Browse files
parmesantnitishtde-sh
committed
Feature: Enable Kafka integration (#1021)
Fixes #936 --------- Signed-off-by: parmesant <[email protected]> Co-authored-by: Nitish Tiwari <[email protected]> Co-authored-by: Devdutt Shenoi <[email protected]>
1 parent fb0fd49 commit fc56860

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/cli.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ use std::path::PathBuf;
2222
use url::Url;
2323

2424
use crate::{
25+
kafka::SslProtocol,
2526
kafka::SslProtocol,
2627
oidc::{self, OpenidConfig},
2728
option::{validation, Compression, Mode},
@@ -526,14 +527,10 @@ impl FromArgMatches for Cli {
526527
self.trino_username = m.get_one::<String>(Self::TRINO_USER_NAME).cloned();
527528

528529
self.kafka_topics = m.get_one::<String>(Self::KAFKA_TOPICS).cloned();
529-
self.kafka_security_protocol = m
530-
.get_one::<SslProtocol>(Self::KAFKA_SECURITY_PROTOCOL)
531-
.cloned();
530+
self.kafka_host = m.get_one::<String>(Self::KAFKA_HOST).cloned();
532531
self.kafka_group = m.get_one::<String>(Self::KAFKA_GROUP).cloned();
533532
self.kafka_client_id = m.get_one::<String>(Self::KAFKA_CLIENT_ID).cloned();
534-
self.kafka_security_protocol = m
535-
.get_one::<SslProtocol>(Self::KAFKA_SECURITY_PROTOCOL)
536-
.cloned();
533+
self.kafka_security_protocol = m.get_one::<SslProtocol>(Self::KAFKA_SECURITY_PROTOCOL).cloned();
537534
self.kafka_partitions = m.get_one::<String>(Self::KAFKA_PARTITIONS).cloned();
538535

539536
self.tls_cert_path = m.get_one::<PathBuf>(Self::TLS_CERT).cloned();

0 commit comments

Comments
 (0)