introduce type hinting to consumerlocator
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
3
app.py
3
app.py
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user