From b96bf6c2d6da3e4cbce1d69185ac1ebc5ad91210 Mon Sep 17 00:00:00 2001 From: Peter Selby Date: Sat, 16 Dec 2017 23:33:27 -0800 Subject: [PATCH] Added a TODO --- src/fudo/flux_led/coinmarketcap_api.clj | 4 ++++ 1 file changed, 4 insertions(+) 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