completely remove unused from_peer field

This commit is contained in:
Kay Kurokawa 2017-11-03 12:13:52 -04:00
parent 9776655c3c
commit b380f5d344

View file

@ -365,7 +365,7 @@ class Node(object):
# Ok, we have the value locally, so use that # Ok, we have the value locally, so use that
peers = self._dataStore.getPeersForBlob(key) peers = self._dataStore.getPeersForBlob(key)
# Send this value to the closest node without it # Send this value to the closest node without it
outerDf.callback({key: peers, "from_peer": 'self'}) outerDf.callback({key: peers})
else: else:
# Ok, value does not exist in DHT at all # Ok, value does not exist in DHT at all
outerDf.callback(result) outerDf.callback(result)
@ -705,7 +705,6 @@ class _IterativeFindHelper(object):
if self.find_value is True and self.key in result and not 'contacts' in result: if self.find_value is True and self.key in result and not 'contacts' in result:
# We have found the value # We have found the value
self.find_value_result[self.key] = result[self.key] self.find_value_result[self.key] = result[self.key]
self.find_value_result['from_peer'] = aContact.address
else: else:
if self.find_value is True: if self.find_value is True:
self._setClosestNodeValue(responseMsg, aContact) self._setClosestNodeValue(responseMsg, aContact)