minor: ReplSet doc example update

This commit is contained in:
Tyler Brock 2012-02-22 13:47:10 -05:00
parent 85c8b18e23
commit 34ccb5cb58
1 changed files with 1 additions and 1 deletions

View File

@ -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|