refactored onionrpeers into a module

This commit is contained in:
Kevin Froman 2019-07-12 12:21:08 -05:00
parent ec2f24b257
commit 021fa87f30
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
5 changed files with 95 additions and 58 deletions

View file

@ -210,7 +210,7 @@ class OnionrCommunicatorDaemon:
def peerCleanup(self):
'''This just calls onionrpeers.cleanupPeers, which removes dead or bad peers (offline too long, too slow)'''
onionrpeers.peerCleanup(self._core)
onionrpeers.peer_cleanup(self._core)
self.decrementThreadCount('peerCleanup')
def getPeerProfileInstance(self, peer):