mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
feat: do not set read preference
This commit is contained in:
parent
a407a3f4b8
commit
0aa5e02fe9
@ -8,7 +8,6 @@ import (
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
"go.mongodb.org/mongo-driver/mongo/options"
|
||||
"go.mongodb.org/mongo-driver/mongo/readconcern"
|
||||
"go.mongodb.org/mongo-driver/mongo/readpref"
|
||||
"go.mongodb.org/mongo-driver/mongo/writeconcern"
|
||||
"go.mongodb.org/mongo-driver/x/mongo/driver/connstring"
|
||||
"go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo"
|
||||
@ -67,7 +66,6 @@ func DefaultOptions() Options {
|
||||
OtelOptions: nil,
|
||||
ClientOptions: options.Client().
|
||||
SetReadConcern(readconcern.Majority()).
|
||||
SetReadPreference(readpref.SecondaryPreferred()).
|
||||
SetWriteConcern(writeconcern.New(writeconcern.WMajority())),
|
||||
DatabaseOptions: nil,
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user