Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coolamqp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
coolamqp
Commits
c227dd78
Commit
c227dd78
authored
7 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
fix, v0.90
parent
bfaa56d7
No related branches found
Branches containing commit
Tags
v0.90
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
coolamqp/objects.py
+2
-2
2 additions, 2 deletions
coolamqp/objects.py
with
2 additions
and
2 deletions
coolamqp/objects.py
+
2
−
2
View file @
c227dd78
...
...
@@ -179,9 +179,9 @@ class Queue(object):
self
.
auto_delete
=
auto_delete
self
.
exclusive
=
exclusive
self
.
anonymous
=
len
(
name
)
==
0
# if this queue is anonymous, it must be regenerated upon reconnect
self
.
anonymous
=
len
(
self
.
name
)
==
0
# if this queue is anonymous, it must be regenerated upon reconnect
self
.
consumer_tag
=
name
if
not
self
.
anonymous
else
uuid
.
uuid4
().
hex
.
encode
(
'
utf8
'
)
# bytes, consumer tag to use in AMQP comms
self
.
consumer_tag
=
self
.
name
if
not
self
.
anonymous
else
uuid
.
uuid4
().
hex
.
encode
(
'
utf8
'
)
# bytes, consumer tag to use in AMQP comms
assert
isinstance
(
self
.
name
,
six
.
binary_type
)
assert
isinstance
(
self
.
consumer_tag
,
six
.
binary_type
)
...
...
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