Method: Rpush::Daemon::Batch#mark_all_failed

Defined in:
lib/rpush/daemon/batch.rb

#mark_all_failed(code, message) ⇒ Object



71
72
73
74
75
76
77
78
79
# File 'lib/rpush/daemon/batch.rb', line 71

def mark_all_failed(code, message)
  key = [code, message]
  @mutex.synchronize do
    @failed[key] = @notifications
  end
  each_notification do |notification|
    Rpush::Daemon.store.mark_failed(notification, code, message, Time.now, persist: false)
  end
end