Method: Evinrude::Peer#failed_append

Defined in:
lib/evinrude/peer.rb

#failed_append(last_index = nil) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/evinrude/peer.rb', line 14

def failed_append(last_index = nil)
  if last_index
    @next_index = last_index + 1
  else
    @next_index = [1, @next_index - 1].max
  end

  update_metrics
end