minor: alias Connection#reconnect to Connection#connect
This commit is contained in:
parent
e8e617e95f
commit
0c574b9975
@ -469,6 +469,7 @@ module Mongo
|
||||
raise ConnectionFailure, "Failed to connect to a master node at #{@host_to_try[0]}:#{@host_to_try[1]}"
|
||||
end
|
||||
end
|
||||
alias :reconnect :connect
|
||||
|
||||
def connecting?
|
||||
@nodes_to_try.length > 0
|
||||
|
@ -125,6 +125,7 @@ module Mongo
|
||||
end
|
||||
end
|
||||
end
|
||||
alias :reconnect :connect
|
||||
|
||||
def connecting?
|
||||
@nodes_to_try.length > 0
|
||||
|
Loading…
Reference in New Issue
Block a user