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:
@ -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
|
||||
|
Reference in New Issue
Block a user