diff --git a/src/refactor_nrepl/artifacts.clj b/src/refactor_nrepl/artifacts.clj index 5442ebff..f61b704b 100644 --- a/src/refactor_nrepl/artifacts.clj +++ b/src/refactor_nrepl/artifacts.clj @@ -19,11 +19,11 @@ (if (zero? lm) nil lm))) ;; structure here is {"prismatic/schem" ["0.1.1" "0.2.0" ...]} -(defonce artifacts (atom (if (.exists (io/file artifacts-file)) - (->> artifacts-file slurp edn/read-string (into {})) - {}) - :meta {:last-modified - (get-last-modified-from-file artifacts-file)})) +(def artifacts (atom (if (.exists (io/file artifacts-file)) + (->> artifacts-file slurp edn/read-string (into {})) + {}) + :meta {:last-modified + (get-last-modified-from-file artifacts-file)})) (def millis-per-day (* 24 60 60 1000)) diff --git a/src/refactor_nrepl/ns/libspecs.clj b/src/refactor_nrepl/ns/libspecs.clj index 04d61ffb..f3092884 100644 --- a/src/refactor_nrepl/ns/libspecs.clj +++ b/src/refactor_nrepl/ns/libspecs.clj @@ -8,7 +8,7 @@ ;; The structure here is {path {lang [timestamp value]}} ;; where lang is either :clj or :cljs -(defonce ^:private cache (atom {})) +(def ^:private cache (atom {})) (defn- aliases [libspecs] (->> libspecs