Sha256: c5b83ef020c680c429a02482a8fffbe8b3af73c6c2c892825c56bd2eab5cc277
Contents?: true
Size: 354 Bytes
Versions: 1
Compression:
Stored size: 354 Bytes
Contents
require 'celluloid' require 'sidekiq/fetch' require 'sidekiq-dynamic-throttle/version' require 'sidekiq-dynamic-throttle/fetch' module Sidekiq::DynamicThrottle def self.throttles @throttles ||= Hash.new { |hash, key| hash[key] = [] } end def self.register_throttle(queue, throttle) throttles['queue:' + queue.to_s] << throttle end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-dynamic-throttle-0.1.0 | lib/sidekiq-dynamic-throttle.rb |