tons of bug fixes.

This commit is contained in:
Bryce Covert
2020-07-15 08:17:39 -07:00
parent d120b7e810
commit 08f12b8107
9 changed files with 496 additions and 186 deletions

View File

@@ -246,6 +246,8 @@
(defonce in-memory-cache (atom []))
(defonce break? (atom false))
(defn load-in-memory-cache []
(future
(loop []
@@ -253,8 +255,9 @@
(reset! in-memory-cache (get-provider-accounts-with-accounts))
(catch Exception e
(println e)))
(Thread/sleep (* 60 * 1000 * 5))
(recur))))
(Thread/sleep (* 30 1000 5))
(when-not @break?
(recur)))))
(defn refresh-provider-account [id]
(swap! in-memory-cache