diff --git a/docs/examples/replica_set.rb b/docs/examples/replica_set.rb index deb0273..2cad06e 100644 --- a/docs/examples/replica_set.rb +++ b/docs/examples/replica_set.rb @@ -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|