tests done
This commit is contained in:
6
app.py
6
app.py
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import random
|
||||
import uuid
|
||||
import logging
|
||||
@@ -24,9 +26,9 @@ LOGGER = logging.getLogger(__name__)
|
||||
if __name__ == "__main__":
|
||||
LOGGER.info("Producer started")
|
||||
generateduuid = str(uuid)
|
||||
communicator = Communicator(currentconsumer=os.environ["KnownConsumer"], uuid=generateduuid)
|
||||
LOGGER.debug(f"My uuid is {generateduuid}")
|
||||
consumerlocator = ConsumerLocator(uuid=generateduuid)
|
||||
communicator = Communicator(consumerlocator=consumerlocator,uuid=generateduuid)
|
||||
consumerlocator = ConsumerLocator(uuid=generateduuid, communicator=communicator)
|
||||
messagesender = MessageSender(communicator=communicator)
|
||||
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user