ReplSetServers requires two parameters, apparently... #405

Merged
merged 1 commit into from Jul 9, 2011
View
3 lib/mongoose/drivers/node-mongodb-native/connection.js
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -56,7 +55,7 @@ NativeConnection.prototype.doOpenSet = function (fn) {
servers.push(new mongo.Server(host, ports[i], {}));
});
- this.db = new mongo.Db(this.name, new ReplSetServers(servers));
+ this.db = new mongo.Db(this.name, new ReplSetServers(servers, {}));
}
this.db.open(fn);