metrics: one more pubsub peers fix

This commit is contained in:
Jacek Sieka 2020-07-13 16:16:46 +02:00
parent c7895ccc52
commit 87e58c1c8d
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8
1 changed files with 2 additions and 2 deletions

View File

@ -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,