Skip to content
Browse files

always use replset constructor

  • Loading branch information...
1 parent f146304 commit faeae02a1a8141eb3980ef23bbb63d509f00f5ae @erh committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/xgen/irc/Storage.java
View
4 src/main/xgen/irc/Storage.java
@@ -23,7 +23,9 @@ public Storage( Context context )
MongoOptions options = new MongoOptions();
options.connectionsPerHost = 100;
- _mongo = new Mongo( "ircmongo" , options );
+ List<ServerAddress> addrs = new ArrayList<ServerAddress>();
+ addrs.add( new ServerAddress( "ircmongo" ) );
+ _mongo = new Mongo( addrs , options );
_db = _mongo.getDB( "irc" );
_rooms = _db.getCollection( "rooms" );

0 comments on commit faeae02

Please sign in to comment.
Something went wrong with that request. Please try again.