Skip to content

Commit

Permalink
Update ApiMongoConnector.java
Browse files Browse the repository at this point in the history
revert read concern to majority, fixed typo
  • Loading branch information
gsergiu authored May 8, 2024
1 parent 2316e42 commit cae8fdf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ protected MongoClientOptions.Builder buildMongoConnectionOptions(String connecti
//set read and write concerns
mco.readPreference(defaultReadPreference());
mco.writeConcern(defaultWriteConcern());
mco.readConcern(defultReadConcern());
mco.readConcern(defaultReadConcern());
return mco;
}


private ReadConcern defultReadConcern() {
return ReadConcern.AVAILABLE;
private ReadConcern defaultReadConcern() {
return ReadConcern.MAJORITY;
}


Expand Down

0 comments on commit cae8fdf

Please sign in to comment.