Commit cfb4b407 authored by Adin Schmahmann's avatar Adin Schmahmann Committed by Steven Allen

added todo comment about FindPeer and peer connectedness

parent c7a8d0d2
......@@ -666,8 +666,7 @@ func (dht *IpfsDHT) FindPeer(ctx context.Context, id peer.ID) (_ peer.AddrInfo,
return peer.AddrInfo{}, err
}
// logger.Debugf("FindPeer %v %v", id, result.success)
// TODO: Consider unlucky disconnect timing and potentially utilizing network.CanConnect or something similar
if dht.host.Network().Connectedness(id) == network.Connected {
shortcutTaken := false
for _, q := range queries {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment