Skip to content

Commit e49e4f0

Browse files
committed
memoizing client
1 parent 318b851 commit e49e4f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/replion/core.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@
1212
:endpoint "http://entry.repl-ion.us-east-1.datomic.net:8182/"
1313
:proxy-port 8182})
1414

15-
(defonce client (d/client config))
15+
(def client
16+
(memoize (fn [] (d/client config))))

0 commit comments

Comments
 (0)