chore: merge function util/with-time and util/with-time-number

This commit is contained in:
Junyi Du
2022-12-15 14:25:14 +08:00
committed by Tienson Qin
parent 39e1b8dc8a
commit 5ee8707469
4 changed files with 5 additions and 15 deletions

View File

@@ -111,7 +111,7 @@
(defn add-q!
[k query time inputs result-atom transform-fn query-fn inputs-fn]
(let [time' (int (util/safe-parse-float time))]
(let [time' (int (util/safe-parse-float time))] ;; for robustness. `time` should already be float
(swap! query-state assoc k {:query query
:query-time time'
:inputs inputs