ping contacts right away during refresh instead of using PingQueue

-fixes contact expiration test
This commit is contained in:
Jack Robison 2018-05-23 20:42:51 -04:00
parent a952d2d2c8
commit 877da78505
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -656,7 +656,7 @@ class Node(MockKademliaHelper):
def _refreshContacts(self):
return defer.DeferredList(
[self._protocol._ping_queue.enqueue_maybe_ping(contact) for contact in self.contacts]
[contact.ping() for contact in self.contacts], consumeErrors=True
)
@defer.inlineCallbacks