Skip to content

Commit 50287fe

Browse files
committed
dev
1 parent d5218be commit 50287fe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/cubejs-ksql-driver/src/KsqlDriver.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ export class KsqlDriver extends BaseDriver implements DriverInterface {
131131
if (this.config.kafkaHost) {
132132
this.kafkaClient = new Kafka({
133133
clientId: 'Cube',
134-
brokers: this.config.kafkaHost.split(','),
134+
brokers: this.config.kafkaHost
135+
.split(',')
136+
.map(h => h.trim()),
135137
// authenticationTimeout: 10000,
136138
// reauthenticationThreshold: 10000,
137139
ssl: this.config.kafkaUseSsl,

rust/cubestore/cubestore/src/streaming/kafka.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ impl StreamingSource for KafkaStreamingSource {
311311
.clone()
312312
.split(",")
313313
.filter(|s| !s.is_empty())
314-
.map(|s| s.to_string())
314+
.map(|s| s.trim().to_string())
315315
.collect();
316316
let stream = self
317317
.kafka_client

0 commit comments

Comments
 (0)