Skip to content

Commit

Permalink
[Fix #145] Enable caching for resolve missing
Browse files Browse the repository at this point in the history
  • Loading branch information
expez committed Mar 3, 2016
1 parent 816c504 commit c671974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/refactor_nrepl/ns/slam/hound/regrow.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
(:import (clojure.lang IMapEntry IRecord)
(java.util.regex Pattern)))

(def ^:dynamic *cache* nil)
(def ^:dynamic *cache* (atom {}))

(defmacro ^:private caching [key & body]
`(if *cache*
Expand Down

3 comments on commit c671974

@magnars
Copy link
Contributor

@magnars magnars commented on c671974 Mar 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem like enough code to do what the commit message says. 😊

@expez
Copy link
Member Author

@expez expez commented on c671974 Mar 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is :)

@magnars
Copy link
Contributor

@magnars magnars commented on c671974 Mar 4, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome 👍

Please sign in to comment.