Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
communications-backbone
Commits
56bfce42
Unverified
Commit
56bfce42
authored
2 years ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
fix: run subscribes on main thread
parent
659ac3c7
dev
11-add-websockets
master
v1.0.0
v0.1.0
v0.0.1
2 merge requests
!23
Resolve "Release v0.1.0"
,
!19
Resolve "Run subscribes on main thread"
Pipeline
#109197
failed with stages
in 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
soar_bus.py
soar_bus.py
+5
-9
No files found.
soar_bus.py
View file @
56bfce42
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment