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,
|
stream/connection,
|
||||||
muxers/muxer
|
muxers/muxer
|
||||||
|
|
||||||
|
logScope:
|
||||||
|
topics = "connmanager"
|
||||||
|
|
||||||
declareGauge(libp2p_peers, "total connected peers")
|
declareGauge(libp2p_peers, "total connected peers")
|
||||||
|
|
||||||
const MaxConnectionsPerPeer = 5
|
const MaxConnectionsPerPeer = 5
|
||||||
|
|
|
@ -14,6 +14,9 @@ import messages,
|
||||||
../../../utility,
|
../../../utility,
|
||||||
../../../protobuf/minprotobuf
|
../../../protobuf/minprotobuf
|
||||||
|
|
||||||
|
logScope:
|
||||||
|
topics = "pubsubprotobuf"
|
||||||
|
|
||||||
proc write*(pb: var ProtoBuffer, field: int, graft: ControlGraft) =
|
proc write*(pb: var ProtoBuffer, field: int, graft: ControlGraft) =
|
||||||
var ipb = initProtoBuffer()
|
var ipb = initProtoBuffer()
|
||||||
ipb.write(1, graft.topicID)
|
ipb.write(1, graft.topicID)
|
||||||
|
|
Loading…
Reference in New Issue