crabhi / celery-java

Java implementation of Celery client and worker
MIT License
97 stars 27 forks source link

message is not sent to the right queue #10

Closed StonesGitHub closed 6 years ago

StonesGitHub commented 6 years ago

I found a bug when testing the main function : the message is always sent to queue 'celery'. When digging into the code, I found public void send(String queue) throws IOException { AMQP.BasicProperties messageProperties = props.headers(headers.map).build(); channel.basicPublish("", "celery", messageProperties, body); } the arg 'queue' is actually never used.

11

crabhi commented 6 years ago

Fixed in #11