diff --git a/src/fudo/flux_led/coinmarketcap_api.clj b/src/fudo/flux_led/coinmarketcap_api.clj index 952a0dd..0d3439e 100644 --- a/src/fudo/flux_led/coinmarketcap_api.clj +++ b/src/fudo/flux_led/coinmarketcap_api.clj @@ -86,6 +86,10 @@ (let [global-url (str base-url "global/")] (sanitize (json/read-str (:body (http/get global-url)))))) + +;; TODO: There's no reason to do this all in one place. Each coin +;; should have a separate schedule, and the schedule should be +;; returned, so it can be stopped individually. (defn start-collector [interesting-coins timing] (let [measures-chan (async/chan (async/sliding-buffer