taoensso / carmine

Redis client + message queue for Clojure
https://www.taoensso.com/carmine
Eclipse Public License 1.0
1.16k stars 131 forks source link

Add qname to argument map passed to queue handler #174

Closed dparis closed 8 years ago

dparis commented 8 years ago

Pass the qname value from the handle1 context as part of the argument map passed to the handler function.

I found that I needed the queue name within the context of a message handler function and had no convenient way to get it. I can work around it a few ways, but I figured I'd see if I could get a PR merged first. :smile:

This change should be pretty safe to merge: it's backwards compatible, documented, and I've updated the tests to pass with the new return value from handle1. If you'd like me to make any additional changes for any reason, just let me know.

Thanks for all you've contributed to the clojure ecosystem @ptaoussanis!

ptaoussanis commented 8 years ago

Looks good, merged! Thanks Dylan.