Skip to content

Commit

Permalink
Remove useless "New" call
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcnunes committed Dec 6, 2023
1 parent 4755942 commit 6e13266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/mongo/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (m *MongoBackend) getMongoClientOptions() mgooptions.ClientOptions {
clientOptions.SetReplicaSet(m.cfg.ReplicaSet)
clientOptions.SetReadPreference(readpref.Primary())
clientOptions.SetReadConcern(readconcern.Majority())
clientOptions.SetWriteConcern(writeconcern.New(writeconcern.WMajority()))
clientOptions.SetWriteConcern(writeconcern.WMajority())
clientOptions.SetConnectTimeout(m.cfg.Timeout)
clientOptions.SetMaxPoolSize(uint64(m.cfg.PoolLimit))
clientOptions.SetMaxConnIdleTime(time.Duration(m.cfg.MaxIdleTimeMS) * time.Millisecond)
Expand Down

0 comments on commit 6e13266

Please sign in to comment.