Commit 76e5a51e authored by Jeromy's avatar Jeromy

turn logging on by default, also make Provide not fail when no peers connected

parent 38d8a0d9
......@@ -194,7 +194,7 @@ func (dht *IpfsDHT) FindProviders(ctx context.Context, key u.Key) ([]*peer.Peer,
u.DOut("Find providers for: '%s'\n", key)
p := dht.routingTables[0].NearestPeer(kb.ConvertKey(key))
if p == nil {
return nil, kb.ErrLookupFailure
return nil, nil
}
for level := 0; level < len(dht.routingTables); {
......
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