mirror of https://github.com/vacp2p/nim-libp2p.git
Add logScope to connmanager and pubsubprotobuf (#363)
This commit is contained in:
parent
0db45462cd
commit
5e66f6fbd8
|
@ -13,6 +13,9 @@ import peerinfo,
|
|||
stream/connection,
|
||||
muxers/muxer
|
||||
|
||||
logScope:
|
||||
topics = "connmanager"
|
||||
|
||||
declareGauge(libp2p_peers, "total connected peers")
|
||||
|
||||
const MaxConnectionsPerPeer = 5
|
||||
|
|
|
@ -14,6 +14,9 @@ import messages,
|
|||
../../../utility,
|
||||
../../../protobuf/minprotobuf
|
||||
|
||||
logScope:
|
||||
topics = "pubsubprotobuf"
|
||||
|
||||
proc write*(pb: var ProtoBuffer, field: int, graft: ControlGraft) =
|
||||
var ipb = initProtoBuffer()
|
||||
ipb.write(1, graft.topicID)
|
||||
|
|
Loading…
Reference in New Issue