mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-09-01 01:35:14 +00:00
verbose logging
This commit is contained in:
parent
adf378b6e9
commit
8f7cf0b38f
1 changed files with 0 additions and 3 deletions
|
@ -232,10 +232,7 @@ class Node:
|
||||||
async with self.peer_search_junction(self.protocol.node_id, max_results=max_results,
|
async with self.peer_search_junction(self.protocol.node_id, max_results=max_results,
|
||||||
bottom_out_limit=bottom_out_limit) as junction:
|
bottom_out_limit=bottom_out_limit) as junction:
|
||||||
async for peers in junction:
|
async for peers in junction:
|
||||||
log.info("peer search: %s", peers)
|
|
||||||
accumulated.extend(peers)
|
accumulated.extend(peers)
|
||||||
log.info("junction done")
|
|
||||||
log.info("context done")
|
|
||||||
distance = Distance(node_id)
|
distance = Distance(node_id)
|
||||||
accumulated.sort(key=lambda peer: distance(peer.node_id))
|
accumulated.sort(key=lambda peer: distance(peer.node_id))
|
||||||
return accumulated[:count]
|
return accumulated[:count]
|
||||||
|
|
Loading…
Add table
Reference in a new issue