Class: WorkerKiller::Middleware::RequestsLimiter

Inherits:
WorkerKiller::Middleware show all
Defined in:
lib/worker_killer/middleware.rb

Instance Attribute Summary

Attributes inherited from WorkerKiller::Middleware

#killer, #limiter, #reaction

Instance Method Summary collapse

Methods inherited from WorkerKiller::Middleware

#call

Constructor Details

#initialize(app, **opts) ⇒ RequestsLimiter

Returns a new instance of RequestsLimiter.



28
29
30
# File 'lib/worker_killer/middleware.rb', line 28

def initialize(app, **opts)
  super(app, klass: ::WorkerKiller::CountLimiter, **opts)
end