peer/queue/sync: remove buffering
Juan Batiz-Benet committed
Dec 21, 2014 at 16:06 UTC
d399a932fea54795ca44c52630642f05f4bdcdda
1 file changed
+2
-2
peer/queue/sync.go
+2
-2
@@ -23,8 +23,8 @@ func NewChanQueue(ctx context.Context, pq PeerQueue) *ChanQueue {
23
func (cq *ChanQueue) process(ctx context.Context) {
24
25
// construct the channels here to be able to use them bidirectionally
26
- enqChan := make(chan peer.Peer, 10)
27
- deqChan := make(chan peer.Peer, 10)
26
+ enqChan := make(chan peer.Peer)
27
+ deqChan := make(chan peer.Peer)
28
29
cq.EnqChan = enqChan
30
cq.DeqChan = deqChan