minor: ReplSet doc example update
This commit is contained in:
parent
85c8b18e23
commit
34ccb5cb58
|
@ -4,7 +4,7 @@ require 'mongo'
|
|||
cons = []
|
||||
|
||||
10.times do
|
||||
cons << Mongo::Connection.multi([['localhost', 27017]], :read_secondary => true)
|
||||
cons << Mongo::ReplSetConnection(['localhost:27017'], :read => :secondary)
|
||||
end
|
||||
|
||||
ports = cons.map do |con|
|
||||
|
|
Loading…
Reference in New Issue