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.
1 parent c3c52cb commit 09ef07aCopy full SHA for 09ef07a
pkg/stream/producer.go
@@ -321,7 +321,7 @@ func (producer *Producer) processPendingSequencesQueue() {
321
// the messages during the checks of the buffer. In this case
322
if producer.pendingSequencesQueue.IsReadyToSend() || len(sequenceToSend) >= producer.options.BatchSize {
323
if len(sequenceToSend) > 0 {
324
- avarage = atomic.AddInt32(&avarage, int32(len(sequenceToSend)))
+ avarage += avarage
325
iterations++
326
if iterations > 10000 {
327
logs.LogInfo("producer %d avarage: %d", producer.id, avarage/int32(iterations))
0 commit comments