chore: v0.25 vendor bump and associated fixes (#2352)

This commit is contained in:
Simon-Pierre Vivier 2024-01-30 10:57:03 -05:00 committed by GitHub
parent edca1df1a8
commit 761ce7b10a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 14 additions and 14 deletions

2
vendor/nim-chronos vendored

@ -1 +1 @@
Subproject commit 41f77d261ead2508acdd3bd3f88a5cbbcefff05f
Subproject commit 92acf68b04070dfe8eb65bab71fbf63804979a16

2
vendor/nim-eth vendored

@ -1 +1 @@
Subproject commit 5aaeb67ebedbefaae2f719f245a96c1a80c42f81
Subproject commit 11049fb87d076a25e0fa8e2fda95acaf119738da

@ -1 +1 @@
Subproject commit 3f1ce24ee116daedbc9c8be525e63ec03e185a28
Subproject commit 9c74b885eaeb6726543e69fde2f7d8837357c1d7

2
vendor/nim-metrics vendored

@ -1 +1 @@
Subproject commit 51f1227d0fd04ce84b1ef784b11280cb7875348c
Subproject commit f51401566ff7719185f52b5efe61d551e479f676

2
vendor/nim-regex vendored

@ -1 +1 @@
Subproject commit 577c4ec3b235c5fd2653a9c86cbc4a576cfc0869
Subproject commit a3f5389e872e45a664aff3dfb80eab8069c688c5

@ -1 +1 @@
Subproject commit 43c546c365af4d291c33b7d94b5b730300165aaf
Subproject commit 2bdfec0eb7156d5773bc5d25fca3b3b77d0869f1

@ -1 +1 @@
Subproject commit 6cdd14282b7c813c2ae4b9a9d749c3ff5ce1b54a
Subproject commit cf0c9cfa408189c6d428799bf2e9da8d0c0f7f08

View File

@ -6,14 +6,15 @@ else:
import
metrics
proc parseCollectorIntoF64(collector: Collector): float64 {.gcsafe, raises: [Defect] } =
proc parseCollectorIntoF64(collector: SimpleCollector): float64 {.gcsafe, raises: [Defect] } =
{.gcsafe.}:
var total = 0.float64
for key in collector.metrics.keys():
try:
total = total + collector.value(key)
except KeyError:
discard
for metrics in collector.metrics:
for metric in metrics:
try:
total = total + metric.value
except KeyError:
discard
return total
template parseAndAccumulate*(collector: Collector, cumulativeValue: float64): float64 =

View File

@ -21,7 +21,6 @@ import
libp2p/multiaddress,
libp2p/peerid,
dnsdisc/client
import
./waku_core