Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiionutdamian committed Feb 20, 2024
1 parent d85e220 commit 473f54f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion labs/labs-internal/emqx/app/src/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,17 @@ def run(self):
logger = Printer()

publishers = []
for _ in range(THREAD_COUNT):
for i in range(THREAD_COUNT):
logger.print_message("CREATING PUBLISHER {:>3}/{:>3}".format(i + 1, THREAD_COUNT))
publisher = Publisher(
logger=logger,
host=MQTT_HOST,
port=MQTT_PORT,
)
publishers.append(publisher)

for publisher in publishers:
logger.print_message("STARTING PUBLISHER {:>3}/{:>3}".format(i + 1, THREAD_COUNT))
publisher.run()

# Assuming you want to join threads, you need to store and join them correctly
Expand Down

0 comments on commit 473f54f

Please sign in to comment.