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, ) key = [code, ] @mutex.synchronize do @failed[key] = @notifications end each_notification do |notification| Rpush::Daemon.store.mark_failed(notification, code, , Time.now, persist: false) end end |