minor: removed unnecessary reference to @slave_okay
This commit is contained in:
parent
b496f23b75
commit
13a53f2554
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user