Use alter-var-root instead of def in set-write-concern!.

Using `def` there is unnecessary and redundant.
This commit is contained in:
Baishampayan Ghose 2012-05-15 17:13:50 +05:30
parent a0b683e23b
commit 79fa31304a

View file

@ -185,7 +185,7 @@
Unlike the official Java driver, Monger uses WriteConcern/SAFE by default. We think defaults should be safe first Unlike the official Java driver, Monger uses WriteConcern/SAFE by default. We think defaults should be safe first
and WebScale fast second." and WebScale fast second."
(def ^:dynamic *mongodb-write-concern* wc)) (alter-var-root #'*mongodb-write-concern* (constantly wc)))
(defn connect-via-uri! (defn connect-via-uri!