Skip to content

Commit

Permalink
Merge pull request #246 from klegul/kafka-publisher-timeout
Browse files Browse the repository at this point in the history
Add timeout to create topic request in Kafka publisher
  • Loading branch information
sbezverk authored Nov 22, 2024
2 parents 216d035 + 4485849 commit 3995084
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/kafka/kafka-publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ func ensureTopic(br *sarama.Broker, timeout time.Duration, topicName string, kCo
},
},
},
Timeout: timeout,
}
ticker := time.NewTicker(100 * time.Millisecond)
tout := time.NewTimer(timeout)
Expand Down

0 comments on commit 3995084

Please sign in to comment.