[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 ( 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)