Skip to content

Commit 09ef07a

Browse files
committed
wip
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
1 parent c3c52cb commit 09ef07a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/stream/producer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ func (producer *Producer) processPendingSequencesQueue() {
321321
// the messages during the checks of the buffer. In this case
322322
if producer.pendingSequencesQueue.IsReadyToSend() || len(sequenceToSend) >= producer.options.BatchSize {
323323
if len(sequenceToSend) > 0 {
324-
avarage = atomic.AddInt32(&avarage, int32(len(sequenceToSend)))
324+
avarage += avarage
325325
iterations++
326326
if iterations > 10000 {
327327
logs.LogInfo("producer %d avarage: %d", producer.id, avarage/int32(iterations))

0 commit comments

Comments
 (0)