#17 basset-worker: Pika's Channel#basic_consume's parameter order changed
Closed 3 years ago by abompard. Opened 4 years ago by codeblock.
codeblock/basset master  into  master

file modified
+1 -2
@@ -141,8 +141,7 @@ 

  

  # Make sure we leave any other messages in the queue

  channel.basic_qos(prefetch_count=1)

- channel.basic_consume(callback,

-                       queue='check_submission')

+ channel.basic_consume('check_submission', callback)

  

  try:

      log.debug('Starting consuming')

If they changed the order, could we instead of going with the implicit order of both arguments, just go explicit on both of them, so the code works with both old and new versions?

Possibly? The original error was complaining about a duplicate queue parameter. If I name both arguments of the function call will it appease python?

Pull-Request has been closed by abompard

3 years ago
Metadata