Skip to content

Commit

Permalink
refactor: Reset timer in batchBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Oct 23, 2023
1 parent 0c5054a commit 6ff8770
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/processor/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ func (bvp *BatchItemProcessor[T]) batchBuilder(ctx context.Context) {
bvp.batchReady <- true
}

bvp.timer.Reset(bvp.o.BatchTimeout)

bvp.batchMutex.Unlock()
}
}
Expand Down

0 comments on commit 6ff8770

Please sign in to comment.