diff --git a/colormipsearch-persist/src/main/java/org/janelia/colormipsearch/dao/DaosProvider.java b/colormipsearch-persist/src/main/java/org/janelia/colormipsearch/dao/DaosProvider.java index 2dd55e39..f794748f 100644 --- a/colormipsearch-persist/src/main/java/org/janelia/colormipsearch/dao/DaosProvider.java +++ b/colormipsearch-persist/src/main/java/org/janelia/colormipsearch/dao/DaosProvider.java @@ -30,12 +30,11 @@ public static synchronized DaosProvider getInstance(Config config) { return instance; } - private final MongoClient mongoClient; private final MongoDatabase mongoDatabase; private final IdGenerator idGenerator; private DaosProvider(Config config) { - mongoClient = MongoDBHelper.createMongoClient(config.getStringPropertyValue("MongoDB.ConnectionURL"), + MongoClient mongoClient = MongoDBHelper.createMongoClient(config.getStringPropertyValue("MongoDB.ConnectionURL"), config.getStringPropertyValue("MongoDB.Server"), config.getStringPropertyValue("MongoDB.AuthDatabase"), config.getStringPropertyValue("MongoDB.Username"),