Skip to content

Commit 05e2018

Browse files
committed
exit BatchedSubManyEose() immediately as the context expires.
I'm not sure about this, but seems to work.
1 parent bba332a commit 05e2018

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pool.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -777,9 +777,10 @@ func (pool *SimplePool) BatchedSubManyEose(
777777
select {
778778
case res <- ie:
779779
case <-ctx.Done():
780+
wg.Done()
781+
return
780782
}
781783
}
782-
783784
wg.Done()
784785
}(df)
785786
}

0 commit comments

Comments
 (0)