Skip to content

Commit bf85ef6

Browse files
committed
Fix lint
1 parent f59a4b8 commit bf85ef6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pulsar/producer_partition.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -559,11 +559,8 @@ func (p *partitionProducer) reconnectToBroker(connectionClosed *connectionClosed
559559
}
560560

561561
func (p *partitionProducer) listenBatch() {
562-
for {
563-
select {
564-
case <-p.batchFlushTicker.C:
565-
p.internalFlushCurrentBatch()
566-
}
562+
for range p.batchFlushTicker.C {
563+
p.internalFlushCurrentBatch()
567564
}
568565
}
569566

0 commit comments

Comments
 (0)