some pnl improvements.

This commit is contained in:
Bryce Covert
2020-09-25 21:23:36 -07:00
parent 45b7df76ee
commit abbb142d9d
3 changed files with 139 additions and 33 deletions

View File

@@ -16,7 +16,8 @@
[unilog.context :as lc]
[clojure.tools.logging :as log]
[clj-time.core :as t]
[mount.core :as mount]))
[mount.core :as mount]
[yang.scheduler :as scheduler]))
(defn rough-match [client-id bank-account-id amount]
@@ -208,4 +209,4 @@
(mount/defstate import-transaction-worker
:start (scheduler/every (* 1000 60 60 4) do-import)
:stop (scheduler/stop import-transactions-cleared-against))
:stop (scheduler/stop import-transaction-worker))