Skip to content

Commit

Permalink
Force reading from Mongo secondaries
Browse files Browse the repository at this point in the history
  • Loading branch information
gousiosg committed Jun 13, 2021
1 parent 96f5247 commit 7e42d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ghtorrent/adapters/mongo_persister.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def mongo
:user => uname,
:auth_source => 'admin',
:read => {
:mode => :secondary_preferred
:mode => :secondary
},
:retry_reads => true,
:retry_writes => true,
Expand Down

0 comments on commit 7e42d23

Please sign in to comment.