mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-02-22 09:38:18 +00:00
increase maxDurationInNonPriorityQueue to 1s
This commit is contained in:
parent
0d0ef3519f
commit
f6775d2843
@ -417,7 +417,7 @@ proc stopSendNonPriorityTask*(p: PubSubPeer) =
|
||||
libp2p_gossipsub_priority_queue_size.set(labelValues = [$p.peerId], value = 0)
|
||||
libp2p_gossipsub_non_priority_queue_size.set(labelValues = [$p.peerId], value = 0)
|
||||
|
||||
proc new(T: typedesc[RpcMessageQueue], maxDurationInNonPriorityQueue = 500.milliseconds): T =
|
||||
proc new(T: typedesc[RpcMessageQueue], maxDurationInNonPriorityQueue = 1.seconds): T =
|
||||
return T(
|
||||
sendPriorityQueue: initDeque[Future[void]](),
|
||||
nonPriorityQueue: newAsyncQueue[Ttlmessage](),
|
||||
|
Loading…
x
Reference in New Issue
Block a user