1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-01 19:24:14 +08:00

peer/queue/sync: remove buffering

This commit is contained in:
Juan Batiz-Benet
2014-12-21 16:06:03 -08:00
parent ec96a0b0b5
commit d399a932fe

View File

@ -23,8 +23,8 @@ func NewChanQueue(ctx context.Context, pq PeerQueue) *ChanQueue {
func (cq *ChanQueue) process(ctx context.Context) {
// construct the channels here to be able to use them bidirectionally
enqChan := make(chan peer.Peer, 10)
deqChan := make(chan peer.Peer, 10)
enqChan := make(chan peer.Peer)
deqChan := make(chan peer.Peer)
cq.EnqChan = enqChan
cq.DeqChan = deqChan