[fanout] Remove defect

This commit is contained in:
paulaan 2019-05-02 20:16:56 +07:00
parent 4655d25d08
commit 9c0c9709ff

View File

@ -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)