fix peer_list

This commit is contained in:
Jack Robison 2020-03-10 19:10:07 -04:00
parent f4645f570c
commit 36243d15cc
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -4305,7 +4305,7 @@ class Daemon(metaclass=JSONRPCServerType):
search_bottom_out_limit = 4
peers = []
peer_q = asyncio.Queue(loop=self.component_manager.loop)
await self.dht_node._value_producer(blob_hash, peer_q)
await self.dht_node._peers_for_value_producer(blob_hash, peer_q)
while not peer_q.empty():
peers.extend(peer_q.get_nowait())
results = [