fix logging issue
This commit is contained in:
parent
88ace2c5dd
commit
17ac11f2b0
|
@ -348,7 +348,7 @@ proc updateScores(g: GossipSub) = # avoid async
|
||||||
let now = Moment.now()
|
let now = Moment.now()
|
||||||
|
|
||||||
for peer, stats in g.peerStats:
|
for peer, stats in g.peerStats:
|
||||||
debug "updating peer score", peer = peer, gossipTopics = peer.topics.len
|
debug "updating peer score", peer = peer.id, gossipTopics = peer.topics.len
|
||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
if not peer.connected:
|
if not peer.connected:
|
||||||
|
@ -357,7 +357,7 @@ proc updateScores(g: GossipSub) = # avoid async
|
||||||
|
|
||||||
# Per topic
|
# Per topic
|
||||||
for topic in peer.topics:
|
for topic in peer.topics:
|
||||||
debug "updating peer topic's scores", peer = peer, topic
|
debug "updating peer topic's scores", peer = peer.id, topic
|
||||||
|
|
||||||
# Defect on purpose, no magic here please, this should not fail!
|
# Defect on purpose, no magic here please, this should not fail!
|
||||||
let topicParams = g.topics[topic].parameters
|
let topicParams = g.topics[topic].parameters
|
||||||
|
|
Loading…
Reference in New Issue