Skip to content

Commit

Permalink
Allow the specification of durable queues and exchanges in bind-channel.
Browse files Browse the repository at this point in the history
  • Loading branch information
rnewman committed Dec 23, 2009
1 parent 3cd657f commit 1eb9acb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/com/github/icylisper/rabbitmq.clj
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@

[conn (.createChannel conn)]))

(defn bind-channel [{:keys [exchange type queue routing-key]}
(defn bind-channel [{:keys [exchange type queue routing-key durable]}
#^Channel ch]
(.exchangeDeclare ch exchange type)
(.queueDeclare ch queue)
(.exchangeDeclare ch exchange type durable)
(.queueDeclare ch queue durable)
(.queueBind ch queue exchange routing-key))

(defn publish [{:keys [exchange routing-key]}
Expand Down

0 comments on commit 1eb9acb

Please sign in to comment.