Skip to content

Commit c1dfd58

Browse files
authored
fix: yamux metrics (#1022)
1 parent 04af0c4 commit c1dfd58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libp2p/muxers/yamux/yamux.nim

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ const
2929
when defined(libp2p_yamux_metrics):
3030
declareGauge(libp2p_yamux_channels, "yamux channels", labels = ["initiator", "peer"])
3131
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]
3333
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]
3535

3636
type
3737
YamuxError* = object of CatchableError
@@ -370,7 +370,7 @@ method write*(channel: YamuxChannel, msg: seq[byte]): Future[void] =
370370
return result
371371
channel.sendQueue.add((msg, 0, result))
372372
when defined(libp2p_yamux_metrics):
373-
libp2p_yamux_recv_queue.observe(channel.lengthSendQueue().int64)
373+
libp2p_yamux_send_queue.observe(channel.lengthSendQueue().int64)
374374
asyncSpawn channel.trySend()
375375

376376
proc open(channel: YamuxChannel) {.async.} =

0 commit comments

Comments
 (0)