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")