We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 450e3a5 + 7e509ac commit e7a1457Copy full SHA for e7a1457
producer.go
@@ -85,7 +85,7 @@ func (p *BatchProducer) WatchProducer() {
85
case <-time.After(p.MaxWait):
86
p.Log.Infoln("MaxWait", "Items=", len(items))
87
if len(items) == 0 {
88
- return
+ continue
89
}
90
91
items = p.releaseBatch(items)
@@ -132,4 +132,4 @@ func (p *BatchProducer) createBatchNo() {
132
// getBatchNo will get the current BatchNo from the atomic variable.
133
func (p *BatchProducer) getBatchNo() int32 {
134
return atomic.LoadInt32(&p.BatchNo)
135
-}
+}
0 commit comments