Fixed timeout not being used
Some checks failed
continuous-integration/drone/push Build was killed

This commit is contained in:
2020-05-08 23:00:37 +02:00
parent 1158e6cc60
commit 0bea194f4a
2 changed files with 4 additions and 2 deletions

4
app.py
View File

@@ -30,7 +30,9 @@ def main():
# set logging preferences
logging.basicConfig(filename='', level=logging.DEBUG)
redis_storage = RedisSuperStorage(os.environ.get('REDIS_URL', "redis://localhost:6379/0"), 5)
redis_storage = RedisSuperStorage(os.environ.get('REDIS_URL', "redis://localhost:6379/0"),
os.environ.get("CUSTOMER_TIMEOUT", 30))
consumer_communicator = ConsumerCommunicator(redis_storage)
producer_communicator = ProducerCommunicator(redis_storage)
ip_watchdog = IPWatchdog(redis_storage)