minor: alias Connection#reconnect to Connection#connect

This commit is contained in:
Kyle Banker 2011-02-02 11:36:56 -05:00
parent e8e617e95f
commit 0c574b9975
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -125,6 +125,7 @@ module Mongo
end
end
end
alias :reconnect :connect
def connecting?
@nodes_to_try.length > 0