Skip to content

Commit

Permalink
modified: pkg/kafka/kafka-publisher.go : for issue "createTopic time…
Browse files Browse the repository at this point in the history
…outs #210"
  • Loading branch information
“denizaydin” committed Dec 19, 2022
1 parent 4a9a9f5 commit 5f2f23d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/kafka/kafka-publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ func ensureTopic(br *sarama.Broker, timeout time.Duration, topicName string) err
},
},
},
Timeout: timeout,
}

ticker := time.NewTicker(100 * time.Millisecond)
tout := time.NewTimer(timeout)
for {
Expand Down

0 comments on commit 5f2f23d

Please sign in to comment.