Skip to content

Commit 3995084

Browse files
authored
Merge pull request #246 from klegul/kafka-publisher-timeout
Add timeout to create topic request in Kafka publisher
2 parents 216d035 + 4485849 commit 3995084

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/kafka/kafka-publisher.go

+1
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ func ensureTopic(br *sarama.Broker, timeout time.Duration, topicName string, kCo
244244
},
245245
},
246246
},
247+
Timeout: timeout,
247248
}
248249
ticker := time.NewTicker(100 * time.Millisecond)
249250
tout := time.NewTimer(timeout)

0 commit comments

Comments
 (0)