Skip to content

Commit

Permalink
Feature: Enable Kafka integration (parseablehq#1021)
Browse files Browse the repository at this point in the history
Fixes parseablehq#936

---------

Signed-off-by: parmesant <anant.v09@proton.me>
Co-authored-by: Nitish Tiwari <nitish@parseable.com>
Co-authored-by: Devdutt Shenoi <devdutt@outlook.in>
  • Loading branch information
3 people committed Jan 2, 2025
1 parent fb0fd49 commit fc56860
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ use std::path::PathBuf;
use url::Url;

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

self.kafka_topics = m.get_one::<String>(Self::KAFKA_TOPICS).cloned();
self.kafka_security_protocol = m
.get_one::<SslProtocol>(Self::KAFKA_SECURITY_PROTOCOL)
.cloned();
self.kafka_host = m.get_one::<String>(Self::KAFKA_HOST).cloned();
self.kafka_group = m.get_one::<String>(Self::KAFKA_GROUP).cloned();
self.kafka_client_id = m.get_one::<String>(Self::KAFKA_CLIENT_ID).cloned();
self.kafka_security_protocol = m
.get_one::<SslProtocol>(Self::KAFKA_SECURITY_PROTOCOL)
.cloned();
self.kafka_security_protocol = m.get_one::<SslProtocol>(Self::KAFKA_SECURITY_PROTOCOL).cloned();
self.kafka_partitions = m.get_one::<String>(Self::KAFKA_PARTITIONS).cloned();

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

0 comments on commit fc56860

Please sign in to comment.