Unverified Commit 56bfce42 authored by Dan Jones's avatar Dan Jones
Browse files

fix: run subscribes on main thread

2 merge requests!23Resolve "Release v0.1.0",!19Resolve "Run subscribes on main thread"
Pipeline #109197 failed with stages
in 25 seconds
......@@ -118,19 +118,15 @@ def run_client(client_id, executor):
)
THREADS[f"{client_id}-broadcast"] = thread
# subscribe
thread = executor.submit(
subscribe,
subscribe(
f"{client_id}-inbox",
EXCHANGES.get("publish"),
client["subscription"], # topic
client["subscription"],
)
THREADS[f"{client_id}-inbox-published"] = thread
thread = executor.submit(
subscribe, f"{client_id}-inbox", EXCHANGES.get("broadcast")
subscribe(
f"{client_id}-inbox",
EXCHANGES.get("broadcast")
)
THREADS[f"{client_id}-inbox-broadcast"] = thread
if client_id not in RUNNING_CLIENTS:
RUNNING_CLIENTS.append(client_id)
running = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment