dht_crawler: warn if we cannot get node id
This commit is contained in:
parent
6c350e57dd
commit
abf4d888af
1 changed files with 4 additions and 2 deletions
|
@ -184,8 +184,10 @@ class Crawler:
|
|||
except lbry.dht.error.RemoteException:
|
||||
self.inc_errors(make_kademlia_peer(None, address, port))
|
||||
pass
|
||||
self.set_latency(make_kademlia_peer(key, address, port), latency)
|
||||
if not latency:
|
||||
self.set_latency(make_kademlia_peer(key, address, port), latency if key else None)
|
||||
if not latency or not key:
|
||||
if not key:
|
||||
log.warning("No node id from %s:%d", host, port)
|
||||
return set()
|
||||
node_id = key
|
||||
distance = Distance(key)
|
||||
|
|
Loading…
Reference in a new issue