Skip to content

Commit

Permalink
Fix item not-nil race (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
echistyakov authored Jan 20, 2025
1 parent ac1270f commit 5248ec1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mono/initiate.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func NewProcessor(sc scheduler.Scheduler, hook ProcessorFinallyHook) (Mono, Sink
p := globalProcessorPool.get()
p.mu.Lock()
p.sc = sc
p.item = nil
p.hookOnFinally = hook
p.mu.Unlock()
return wrap(p), p, p
Expand Down

0 comments on commit 5248ec1

Please sign in to comment.