Created
November 15, 2012 12:32
-
-
Save travis/4078425 to your computer and use it in GitHub Desktop.
This file contains 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
(defbolt active-user-bolt ["id" "user-ids" "story"] {:prepare true} | |
[conf context collector] | |
(let [redii (redis/redii)] | |
(bolt | |
(execute [{id "id" story "story" :as tuple}] | |
(doseq [user-id (active-users redii)] | |
(emit-bolt! collector [id user-id story] :anchor tuple)) | |
(ack! collector tuple))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment