document known `--mm:orc` crash (#1039)

This commit is contained in:
Etan Kissling 2024-03-04 19:34:09 +01:00 committed by GitHub
parent 78e83889ee
commit 8294d5b9df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -235,7 +235,10 @@ proc completeWrite(
when defined(libp2p_network_protocols_metrics): when defined(libp2p_network_protocols_metrics):
if s.protocol.len > 0: if s.protocol.len > 0:
libp2p_protocols_bytes.inc(msgLen.int64, labelValues=[s.protocol, "out"]) # This crashes on Nim 2.0.2 with `--mm:orc` during `nimble test`
# https://github.com/status-im/nim-metrics/issues/79
libp2p_protocols_bytes.inc(
msgLen.int64, labelValues = [s.protocol, "out"])
s.activity = true s.activity = true
except CancelledError as exc: except CancelledError as exc: