Created
December 18, 2012 13:04
-
-
Save pingles/4327837 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(let [[message-seq put] (pipe)] | |
(letfn [(message-handler [ch msg-meta payload]) | |
(put {:ch ch :msg-meta msg-meta :payload payload})] | |
(lc/subscribe ch qname message-handler :auto-ack true)) | |
message-seq) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Shouldn't the put form be part of the message-handler function? Or am I missing something?