default value for nodes_or_host
This commit is contained in:
parent
871c9ee873
commit
feaa141e2b
|
@ -41,7 +41,7 @@ module XGen
|
||||||
#
|
#
|
||||||
# When a DB object first connects, it tries nodes and stops at the
|
# When a DB object first connects, it tries nodes and stops at the
|
||||||
# first one it connects to.
|
# first one it connects to.
|
||||||
def initialize(nodes_or_host, port=nil)
|
def initialize(nodes_or_host=nil, port=nil)
|
||||||
@nodes = case nodes_or_host
|
@nodes = case nodes_or_host
|
||||||
when String
|
when String
|
||||||
[[nodes_or_host, port || DEFAULT_PORT]]
|
[[nodes_or_host, port || DEFAULT_PORT]]
|
||||||
|
|
Loading…
Reference in New Issue