Skip to content

Commit 3d6f1d5

Browse files
committed
Fix deadlock in queue
1 parent 2034106 commit 3d6f1d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

queue/queue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ type sema struct {
126126

127127
func newSema() *sema {
128128
return &sema{
129-
ready: make(chan bool),
129+
ready: make(chan bool, 1),
130130
response: &sync.WaitGroup{},
131131
}
132132
}

0 commit comments

Comments
 (0)