docs: comment on not logging the key in some kad queries

Signed-off-by: ljedrz <ljedrz@gmail.com>
This commit is contained in:
ljedrz 2020-08-05 13:58:45 +02:00
parent 77d9a6cc0e
commit 7e799f0e90

View File

@ -84,10 +84,12 @@ impl<Types: IpfsTypes> NetworkBehaviourEventProcess<KademliaEvent> for Behaviour
}
GetClosestPeers(Ok(GetClosestPeersOk { key: _, peers })) => {
for peer in peers {
// don't mention the key here, as this is just the id of our node
debug!("kad: peer {} is close", peer);
}
}
GetClosestPeers(Err(GetClosestPeersError::Timeout { key: _, peers })) => {
// don't mention the key here, as this is just the id of our node
warn!(
"kad: timed out trying to find all closest peers; got the following:"
);