Navigation Menu

Skip to content

Commit

Permalink
Specify client options as a part of dumper options
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 15, 2015
1 parent 293b1dd commit 64e4144
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/drndump/command.rb
Expand Up @@ -113,16 +113,16 @@ def dumper_params
:dataset => @dataset,
:receiver_host => @receiver_host,
:receiver_port => @receiver_port,
:client_options => {
:backend => :coolio,
:loop => @loop,
},
}
end

def dump
@dumper = DumpClient.new(dumper_params)
client_options = {
:backend => :coolio,
:loop => @loop,
}
@dumper.run(:client_options => client_options) do |message|
@dumper.run do |message|
puts(JSON.pretty_generate(message))
end
@loop.run
Expand Down

0 comments on commit 64e4144

Please sign in to comment.