mirror of https://github.com/celery/kombu.git
fix brop must in same slot error (#1144)
* fixed not Brpop in same slot * fixed not Brpop in same slot
This commit is contained in:
parent
e1dcfaef4b
commit
f2970e81f8
|
@ -778,7 +778,9 @@ class Channel(virtual.Channel):
|
|||
|
||||
def _q_for_pri(self, queue, pri):
|
||||
pri = self.priority(pri)
|
||||
return '%s%s%s' % ((queue, self.sep, pri) if pri else (queue, '', ''))
|
||||
if pri:
|
||||
return "{{{}}}{}{}".format(queue, self.sep, pri)
|
||||
return queue
|
||||
|
||||
def priority(self, n):
|
||||
steps = self.priority_steps
|
||||
|
|
Loading…
Reference in New Issue