mirror of
https://github.com/crazybber/awesome-patterns.git
synced 2024-11-25 14:26:04 +03:00
[fanout] Remove defect
This commit is contained in:
parent
4655d25d08
commit
9c0c9709ff
@ -3,7 +3,6 @@ package messaging
|
||||
import (
|
||||
"context"
|
||||
"go.uber.org/zap"
|
||||
"io"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
)
|
||||
@ -117,9 +116,6 @@ func (c *worker) stream(val interface{}) {
|
||||
zap.Error(err),
|
||||
)
|
||||
}
|
||||
if err == io.EOF {
|
||||
return
|
||||
}
|
||||
}
|
||||
default:
|
||||
atomic.AddUint32(&idle, 1)
|
||||
|
Loading…
Reference in New Issue
Block a user