Skip to content

Commit 2e9a108

Browse files
committed
Make sure the workers are awaked when BufferedChannelQueue.GetChannel().
1 parent 123b146 commit 2e9a108

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

queue.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,8 @@ func (q *BufferedChannelQueue[T]) GetFreeNodeHookPoolIntervalDuration() time.Dur
645645

646646
// GetChannel Get Channel(for Selecting channels usages)
647647
func (q *BufferedChannelQueue[T]) GetChannel() chan T {
648+
q.notifyWorkers()
649+
648650
return q.blockingQueue
649651
}
650652

0 commit comments

Comments
 (0)