From 53505832cc8d6a9f2e7aa89d790eab921c86f596 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Wed, 29 Aug 2018 23:05:38 -0500 Subject: [PATCH] preparing for config merge --- onionr/communicator2.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/onionr/communicator2.py b/onionr/communicator2.py index 9c44ed21..9e4c70f5 100755 --- a/onionr/communicator2.py +++ b/onionr/communicator2.py @@ -84,7 +84,6 @@ class OnionrCommunicatorDaemon: # Set timers, function reference, seconds # requiresPeer True means the timer function won't fire if we have no connected peers - # TODO: make some of these timer counts configurable OnionrCommunicatorTimers(self, self.daemonCommands, 5) OnionrCommunicatorTimers(self, self.detectAPICrash, 5) peerPoolTimer = OnionrCommunicatorTimers(self, self.getOnlinePeers, 60) @@ -277,7 +276,7 @@ class OnionrCommunicatorDaemon: '''Manages the self.onlinePeers attribute list, connects to more peers if we have none connected''' logger.info('Refreshing peer pool.') - maxPeers = 6 + maxPeers = config.get('peers.maxConnect') needed = maxPeers - len(self.onlinePeers) for i in range(needed):