Permalink
Browse files

changed arg order to disconnect

  • Loading branch information...
1 parent 8b0fe41 commit 8fac62d644737f17852b738a5ab5ba156c2f283b @icylisper icylisper committed Jan 17, 2010
Showing with 4 additions and 3 deletions.
  1. +1 −1 README.md
  2. +3 −2 src/org/clojars/rabbitmq.clj
View
@@ -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
@@ -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))

0 comments on commit 8fac62d

Please sign in to comment.