diff --git a/lib/groonga-query-log/replayer.rb b/lib/groonga-query-log/replayer.rb index 7c25857..e1069a8 100644 --- a/lib/groonga-query-log/replayer.rb +++ b/lib/groonga-query-log/replayer.rb @@ -193,11 +193,13 @@ def initialize end def create_client(&block) - Groonga::Client.open(:host => @host, - :port => @port, - :protocol => @protocol, - :read_timeout => @read_timeout, - &block) + options = { + :host => @host, + :port => @port, + :protocol => @protocol, + :read_timeout => @read_timeout + } + Groonga::Client.open(options, &block) end def create_request_output(&block)