mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-02 14:03:06 +00:00
waku sync cached message metric (#3387)
This commit is contained in:
parent
95b665fa45
commit
0304f063b8
File diff suppressed because it is too large
Load Diff
@ -19,3 +19,6 @@ declarePublicCounter total_bytes_exchanged,
|
||||
|
||||
declarePublicCounter total_transfer_messages_exchanged,
|
||||
"the number of messages sent and received by the transfer protocol", ["direction"]
|
||||
|
||||
declarePublicGauge total_messages_cached,
|
||||
"the number of messages cached by the node after prunning"
|
||||
|
||||
@ -362,6 +362,8 @@ proc periodicPrune(self: SyncReconciliation) {.async.} =
|
||||
|
||||
let count = self.storage.prune(time)
|
||||
|
||||
total_messages_cached.set(self.storage.length())
|
||||
|
||||
debug "periodic prune done", elements_pruned = count
|
||||
|
||||
proc idsReceiverLoop(self: SyncReconciliation) {.async.} =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user