mirror of
https://github.com/codex-storage/nim-libp2p.git
synced 2025-02-04 07:04:04 +00:00
metrics: one more pubsub peers fix
This commit is contained in:
parent
c7895ccc52
commit
87e58c1c8d
@ -79,8 +79,8 @@ method handleDisconnect*(p: PubSub, peer: PubSubPeer) {.base.} =
|
||||
p.peers.del(peer.id)
|
||||
trace "peer disconnected", peer = peer.id
|
||||
|
||||
# metrics
|
||||
libp2p_pubsub_peers.set(p.peers.len.int64)
|
||||
# metrics
|
||||
libp2p_pubsub_peers.set(p.peers.len.int64)
|
||||
|
||||
proc sendSubs*(p: PubSub,
|
||||
peer: PubSubPeer,
|
||||
|
Loading…
x
Reference in New Issue
Block a user