#17 basset-worker: Pika's Channel#basic_consume's parameter order changed
Opened 4 months ago by codeblock. Modified 4 months ago
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?

Metadata