More clean way to return locally found hash_ids for findHashId

This commit is contained in:
shortcutme 2019-01-24 15:18:12 +01:00
parent fa99f3dbbe
commit e8dbf1511b
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 6 additions and 19 deletions

View file

@ -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