Skip to content

Commit bc35f0c

Browse files
committed
Unlock()
1 parent 7e6b981 commit bc35f0c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

batch.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ func (b *Batch) StartBatchProcessing() {
6767
go b.ReadItems()
6868
}
6969

70+
// Unlock function will allow the batch processing to start with the multiple iteration
71+
func (b *Batch) Unlock() {
72+
b.Islocked = false
73+
}
74+
7075
// ReadItems function will run infinitely to listen to the Resource channel and the received
7176
// object marshaled with BatchItem and then send to the Producer Watcher channel for further
7277
// processing.

0 commit comments

Comments
 (0)