michaelklishin/monger — pull request #24 by ghoseb (2012-05-15 05:46:29+00:00)
Title: Add support for connecting to Replica Sets.

Monger can now connect to replica sets using one or more seeds when
calling monger.core/connect with a vector (or list) of server-addresses
instead of just a single one.

For example -

;; Connect to a single MongoDB instance
(connect (server-address "127.0.0.1" 27017) (mongo-options))

;; Connect to a replica set
(connect [(server-address "127.0.0.1" 27017)
(server-address "127.0.0.1" 27018)]
(mongo-options))

Since connect! just applies connect to all the args, it works fine there
as well.