minor: removed unnecessary reference to @slave_okay

This commit is contained in:
Kyle Banker 2011-06-15 11:31:10 -04:00
parent b496f23b75
commit 13a53f2554

View File

@ -89,7 +89,6 @@ module Mongo
# Are we allowing reads from secondaries? # Are we allowing reads from secondaries?
@read_secondary = opts.fetch(:read_secondary, false) @read_secondary = opts.fetch(:read_secondary, false)
@slave_okay = false
setup(opts) setup(opts)
end end
@ -186,7 +185,7 @@ module Mongo
# #
# @return [Boolean] # @return [Boolean]
def slave_ok? def slave_ok?
@read_secondary || @slave_ok @read_secondary
end end
def authenticate_pools def authenticate_pools