Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed arg order to disconnect

  • Loading branch information...
commit 8fac62d644737f17852b738a5ab5ba156c2f283b 1 parent 8b0fe41
@icylisper icylisper authored
Showing with 4 additions and 3 deletions.
  1. +1 −1 
  2. +3 −2 src/org/clojars/rabbitmq.clj
2 
@@ -49,7 +49,7 @@ To test publishing of messages, run:
(rabbitmq/consume-wait connection-map channel) -> message
(rabbitmq/consume-poll connection-map channel) -> message
- (rabbitmq/disconnect channel connection)
+ (rabbitmq/disconnect connection channel)
Note: The consumer part of the client and other utils are still under development
5 src/org/clojars/rabbitmq.clj
@@ -50,8 +50,9 @@
(let [msg-bytes (.getBytes m)]
(.basicPublish ch exchange routing-key nil msg-bytes)))
-(defn disconnect [#^Channel ch
- #^Connection conn]
+(defn disconnect [#^Connection conn
+ #^Channel ch]
(.close ch)
(.close conn))
Please sign in to comment.
Something went wrong with that request. Please try again.