Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/beaneater/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def initialize(address)
# @conn.transmit('stats')
#
def transmit(command, **options)
_with_retry(**options.slice(:retry_interval, :init)) do
_with_retry(options[:retry_interval], options[:init]) do
@mutex.synchronize do
_raise_not_connected! unless connection

Expand Down Expand Up @@ -189,7 +189,7 @@ def _initialize_tubes
# @param [Integer] tries The maximum number of tries in draining mode
# @return [Object] Result of the block passed
#
def _with_retry(retry_interval: DEFAULT_RETRY_INTERVAL, init: true, tries: MAX_RETRIES, &block)
def _with_retry(retry_interval = DEFAULT_RETRY_INTERVAL, init = true, tries = MAX_RETRIES, &block)
yield
rescue EOFError, Errno::ECONNRESET, Errno::EPIPE,
Errno::ECONNREFUSED => ex
Expand Down