Skip to content

Commit 5248ec1

Browse files
authored
Fix item not-nil race (#45)
1 parent ac1270f commit 5248ec1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mono/initiate.go

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ func NewProcessor(sc scheduler.Scheduler, hook ProcessorFinallyHook) (Mono, Sink
6161
p := globalProcessorPool.get()
6262
p.mu.Lock()
6363
p.sc = sc
64+
p.item = nil
6465
p.hookOnFinally = hook
6566
p.mu.Unlock()
6667
return wrap(p), p, p

0 commit comments

Comments
 (0)