lib/fluent/plugin/out_sakuraio.rb in fluent-plugin-sakuraio-0.2.0 vs lib/fluent/plugin/out_sakuraio.rb in fluent-plugin-sakuraio-0.2.1
- old
+ new
@@ -29,10 +29,10 @@
end
end
def run
options = {}
- @ping.positive? options[:ping] = @ping
+ options[:ping] = @ping if @ping.positive?
@client = Faye::WebSocket::Client.new(@url, nil, options)
EM.next_tick do
@client.on :open do
log.info "sakuraio: starting websocket connection for #{@url}."
end