hummingbird-me/kitsu-server

View on GitHub
app/workers/buffered_stream_client/buffer_flush_worker.rb

Summary

Maintainability
A
0 mins
Test Coverage
D
62%
class BufferedStreamClient
  class BufferFlushWorker
    include Sidekiq::Worker
    sidekiq_options queue: 'soon'

    def perform(klass_name, queue)
      klass = klass_name.safe_constantize
      buffer = klass.new(queue)
      buffer.flush(StreamRails.client)
    end
  end
end