Created
September 20, 2016 18:54
-
-
Save ztellman/7b60af41490e6fc9084abafc46297256 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
(defn kafka-sink [] | |
(let [s (s/stream)] | |
(s/consume-async | |
(fn [msg] | |
(d/future (synchronous-put-to-kafka msg)))) | |
s)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment