reduced initial block cleanup timer count

This commit is contained in:
Kevin Froman 2019-08-18 00:54:52 -05:00
parent a69cb17e47
commit a5490b9f28
2 changed files with 6 additions and 6 deletions

View File

@ -164,7 +164,7 @@ class OnionrCommunicatorDaemon:
# Adjust initial timer triggers
peerPoolTimer.count = (peerPoolTimer.frequency - 1)
cleanupTimer.count = (cleanupTimer.frequency - 60)
blockCleanupTimer.count = (blockCleanupTimer.frequency - 5)
blockCleanupTimer.count = (blockCleanupTimer.frequency - 2)
shared_state.add(self)

View File

@ -51,10 +51,10 @@ class DirectConnectionManagement:
resp = "pending"
if pubkey in communicator.direct_connection_clients:
resp = communicator.direct_connection_clients[pubkey]
"""Spawn a thread that will create the client and eventually add it to the
communicator.active_services
"""
threading.Thread(target=onionrservices.OnionrServices().create_client, args=[pubkey, communicator], daemon=True).start()
else:
"""Spawn a thread that will create the client and eventually add it to the
communicator.active_services
"""
threading.Thread(target=onionrservices.OnionrServices().create_client, args=[pubkey, communicator], daemon=True).start()
return Response(resp)