Navigation Menu

Skip to content

Commit

Permalink
Make internal methods private
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 17, 2015
1 parent 96e94bf commit 88e8c24
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions lib/droonga/data_absorber_client.rb
Expand Up @@ -116,18 +116,6 @@ def run
end
end

def create_destination_client
options = {
:host => @host,
:port => @port,
:tag => @tag,
:protocol => :droonga,
:receiver_host => @receiver_host,
:receiver_port => @receiver_port,
}.merge(@client_options)
Droonga::Client.new(options)
end

def source_node_suspendable?
(source_replica_hosts - [@source_host]).size >= 1
end
Expand All @@ -149,6 +137,21 @@ def validate_params
end
end

def destination_client_options
{
:host => @host,
:port => @port,
:tag => @tag,
:protocol => :droonga,
:receiver_host => @receiver_host,
:receiver_port => @receiver_port,
}.merge(@client_options)
end

def create_destination_client
Droonga::Client.new(destination_client_options)
end

def source_replica_hosts
@source_replica_hosts ||= get_source_replica_hosts
end
Expand Down

0 comments on commit 88e8c24

Please sign in to comment.