From 79fa31304a75aa361e3fdab3192eb4088a6ab1b9 Mon Sep 17 00:00:00 2001 From: Baishampayan Ghose Date: Tue, 15 May 2012 17:13:50 +0530 Subject: [PATCH] Use `alter-var-root` instead of `def` in set-write-concern!. Using `def` there is unnecessary and redundant. --- src/monger/core.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monger/core.clj b/src/monger/core.clj index 2ec8805..aec61b9 100644 --- a/src/monger/core.clj +++ b/src/monger/core.clj @@ -185,7 +185,7 @@ Unlike the official Java driver, Monger uses WriteConcern/SAFE by default. We think defaults should be safe first and WebScale fast second." - (def ^:dynamic *mongodb-write-concern* wc)) + (alter-var-root #'*mongodb-write-concern* (constantly wc))) (defn connect-via-uri!