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