Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mapping Provider
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
Next Generation Map
Mapping Provider
Commits
33ac4931
Commit
33ac4931
authored
4 weeks ago
by
Erik Reid
Browse files
Options
Downloads
Patches
Plain Diff
bugfix for routing keys introduced in mypy refactoring
parent
d8dd3e22
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mapping_provider/backends/rmq/queue.py
+6
-3
6 additions, 3 deletions
mapping_provider/backends/rmq/queue.py
with
6 additions
and
3 deletions
mapping_provider/backends/rmq/queue.py
+
6
−
3
View file @
33ac4931
...
@@ -74,7 +74,7 @@ def setup_channel(
...
@@ -74,7 +74,7 @@ def setup_channel(
queue_declare
:
bool
=
True
,
queue_declare
:
bool
=
True
,
exclusive
:
bool
=
False
,
exclusive
:
bool
=
False
,
single_active_consumer
:
bool
=
False
,
single_active_consumer
:
bool
=
False
,
routing_keys
:
str
|
Sequence
[
str
|
None
]
|
None
=
None
,
routing_keys
:
Sequence
[
str
]
=
[]
,
prefetch_count
:
int
|
None
=
None
,
prefetch_count
:
int
|
None
=
None
,
force_quorum_queue
:
bool
=
False
,
force_quorum_queue
:
bool
=
False
,
)
->
tuple
[
BlockingChannel
,
str
|
None
]:
)
->
tuple
[
BlockingChannel
,
str
|
None
]:
...
@@ -142,8 +142,11 @@ def setup_channel(
...
@@ -142,8 +142,11 @@ def setup_channel(
assert
queue_name
,
"
queue name must not be empty here
"
assert
queue_name
,
"
queue name must not be empty here
"
if
routing_keys
is
None
or
isinstance
(
routing_keys
,
str
):
if
not
routing_keys
:
routing_keys
=
[
routing_keys
]
# in case no routing keys are provided (as for fanout exchanges),
# ensure the queue is still bound to the exchange
routing_keys
=
[
None
]
for
rk
in
routing_keys
:
for
rk
in
routing_keys
:
channel
.
queue_bind
(
exchange
=
exchange_name
,
queue
=
queue_name
,
routing_key
=
rk
)
channel
.
queue_bind
(
exchange
=
exchange_name
,
queue
=
queue_name
,
routing_key
=
rk
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment