introduce type hinting to consumerlocator
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-03-30 17:10:48 +02:00
parent 62f059b461
commit 94edf03cf8
2 changed files with 9 additions and 15 deletions

3
app.py
View File

@@ -25,11 +25,12 @@ if __name__ == "__main__":
LOGGER.info("Producer started")
generateduuid = str(uuid)
LOGGER.debug(f"My uuid is {generateduuid}")
consumerlocator = ConsumerLocator()
consumerlocator = ConsumerLocator(communicator=Communicator())
communicator = Communicator(consumerlocator=consumerlocator,uuid=uuid)
messagesender = MessageSender(communicator=communicator)
while True:
LOGGER.info("Sending message to consumer")
messagesender.sendmessage()
time.sleep(random.random())