We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fd6673 commit e8eb1f5Copy full SHA for e8eb1f5
flow/connectors/mongo/mongo.go
@@ -46,7 +46,7 @@ func NewMongoConnector(ctx context.Context, config *protos.MongoConfig) (*MongoC
46
47
client, err := mongo.Connect(options.Client().
48
SetAppName("PeerDB Mongo Connector").
49
- SetReadPreference(readpref.Primary()).
+ SetReadPreference(readpref.SecondaryPreferred()).
50
SetCompressors([]string{"zstd", "snappy"}).
51
ApplyURI(config.Uri))
52
if err != nil {
0 commit comments