Skip to content

Commit

Permalink
mongoclient is not a field anymore in the daosprovider
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian Goina committed Apr 2, 2024
1 parent 2c26ace commit 2184f59
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 2184f59

Please sign in to comment.