More clean way to return locally found hash_ids for findHashId
This commit is contained in:
parent
fa99f3dbbe
commit
e8dbf1511b
2 changed files with 6 additions and 19 deletions
|
@ -328,6 +328,9 @@ class Peer(object):
|
|||
|
||||
back[hash] += map(unpacker_func, peers)
|
||||
|
||||
for hash in res.get("my", []):
|
||||
back[hash].append((self.connection.ip, self.connection.port))
|
||||
|
||||
return back
|
||||
|
||||
# Send my hashfield to peer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue