michaelklishin/monger — pull request #25 by ghoseb (2012-05-15 06:04:25+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 -

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

``` clojure
;; 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.