From ad44b4f134f2d866b85feeb216b5aa78f9da17ee Mon Sep 17 00:00:00 2001 From: marcsello Date: Wed, 22 Apr 2020 03:16:28 +0200 Subject: [PATCH] Moved learning about new consumers to every cycle --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 597ea13..fd50c82 100644 --- a/app.py +++ b/app.py @@ -43,9 +43,9 @@ if __name__ == "__main__": messagesender = MessageSender(communicator=communicator, uuid=generateduuid) consumerlocator = ConsumerLocator(uuid=generateduuid, communicator=communicator, redisconnector=RedisConnector()) - consumerlocator.learnconsumerlist() while True: + consumerlocator.learnconsumerlist() LOGGER.info(f"Updating consumer list of {generateduuid}") consumerlocator.updateconsumer() LOGGER.info("Sending message to consumer")