|
29 | 29 | when defined(libp2p_yamux_metrics):
|
30 | 30 | declareGauge(libp2p_yamux_channels, "yamux channels", labels = ["initiator", "peer"])
|
31 | 31 | declareHistogram libp2p_yamux_send_queue, "message send queue length (in byte)",
|
32 |
| - buckets = [0.0, 100.0, 250.0, 1000.0, 2000.0, 1600.0, 6400.0, 25600.0, 256000.0] |
| 32 | + buckets = [0.0, 100.0, 250.0, 1000.0, 2000.0, 3200.0, 6400.0, 25600.0, 256000.0] |
33 | 33 | declareHistogram libp2p_yamux_recv_queue, "message recv queue length (in byte)",
|
34 |
| - buckets = [0.0, 100.0, 250.0, 1000.0, 2000.0, 1600.0, 6400.0, 25600.0, 256000.0] |
| 34 | + buckets = [0.0, 100.0, 250.0, 1000.0, 2000.0, 3200.0, 6400.0, 25600.0, 256000.0] |
35 | 35 |
|
36 | 36 | type
|
37 | 37 | YamuxError* = object of CatchableError
|
@@ -370,7 +370,7 @@ method write*(channel: YamuxChannel, msg: seq[byte]): Future[void] =
|
370 | 370 | return result
|
371 | 371 | channel.sendQueue.add((msg, 0, result))
|
372 | 372 | when defined(libp2p_yamux_metrics):
|
373 |
| - libp2p_yamux_recv_queue.observe(channel.lengthSendQueue().int64) |
| 373 | + libp2p_yamux_send_queue.observe(channel.lengthSendQueue().int64) |
374 | 374 | asyncSpawn channel.trySend()
|
375 | 375 |
|
376 | 376 | proc open(channel: YamuxChannel) {.async.} =
|
|
0 commit comments