Skip to content

Commit 620b386

Browse files
committed
increase maxDurationInNonPriorityQueue to 1s
1 parent fe7d267 commit 620b386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libp2p/protocols/pubsub/pubsubpeer.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ proc stopSendNonPriorityTask*(p: PubSubPeer) =
407407
libp2p_gossipsub_priority_queue_size.set(labelValues = [$p.peerId], value = 0)
408408
libp2p_gossipsub_non_priority_queue_size.set(labelValues = [$p.peerId], value = 0)
409409

410-
proc new(T: typedesc[RpcMessageQueue], maxDurationInNonPriorityQueue = 500.milliseconds): T =
410+
proc new(T: typedesc[RpcMessageQueue], maxDurationInNonPriorityQueue = 1.seconds): T =
411411
return T(
412412
sendPriorityQueue: initDeque[Future[void]](),
413413
nonPriorityQueue: newAsyncQueue[Ttlmessage](),

0 commit comments

Comments
 (0)