Skip to content

Commit

Permalink
Use one line per one option
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 25, 2014
1 parent 7141857 commit 97becd7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/droonga/command/serf_event_handler.rb
Expand Up @@ -145,12 +145,15 @@ def join_as_replica
joining_host = joining_node.split(":").first

catalog = nil
Droonga::Client.open(:host => source_host, :port => source_node_port,
:tag => tag, :protocol => :droonga, :timeout => 1,
:receiver_host => joining_host,
Droonga::Client.open(:host => source_host,
:port => source_node_port,
:tag => tag,
:protocol => :droonga,
:timeout => 1,
:receiver_host => joining_host,
:receiver_port => 0) do |client|
request = client.request(:dataset => source_node_dataset ,
:type => "catalog.fetch") do |responce|
:type => "catalog.fetch") do |responce|
File.write(Path.catalog, JSON.generate(responce["body"]))
catalog = responce["body"]
end
Expand Down

0 comments on commit 97becd7

Please sign in to comment.