Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
  • Loading branch information
Gsantomaggio committed Jan 9, 2025
1 parent c3c52cb commit 09ef07a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/stream/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func (producer *Producer) processPendingSequencesQueue() {
// the messages during the checks of the buffer. In this case
if producer.pendingSequencesQueue.IsReadyToSend() || len(sequenceToSend) >= producer.options.BatchSize {
if len(sequenceToSend) > 0 {
avarage = atomic.AddInt32(&avarage, int32(len(sequenceToSend)))
avarage += avarage
iterations++
if iterations > 10000 {
logs.LogInfo("producer %d avarage: %d", producer.id, avarage/int32(iterations))
Expand Down

0 comments on commit 09ef07a

Please sign in to comment.