Skip to content

Commit 470cbbe

Browse files
authored
Update cluster.go
1 parent f4e0677 commit 470cbbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kafka/cluster.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ func (module *Cluster) describeLogDirs() {
149149

150150
for _, broker := range brokers {
151151
go func(b *sarama.Broker) {
152+
// try to open the connection with broker if not already established
153+
// ignoring the error as the only possible one at this stage is AlreadyConnected
152154
_ = b.Open(module.client.Config())
153155
res, err := b.DescribeLogDirs(req)
154156
resCh <- response{

0 commit comments

Comments
 (0)