1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/lib/sidekiq/server.rb

21 lines
290 B
Ruby
Raw Normal View History

2012-01-16 23:02:58 -05:00
require 'celluloid'
2012-01-16 19:14:47 -05:00
module Sidekiq
##
# Represents a connection to our MQ server.
#
class Server
2012-01-16 23:02:58 -05:00
include Celluloid
2012-01-16 19:18:36 -05:00
2012-01-16 23:02:58 -05:00
def initialize(location, options={})
@workers = []
2012-01-16 19:18:36 -05:00
2012-01-16 23:02:58 -05:00
options[:worker_count].times do
@workers << Worker.new
end
2012-01-16 19:18:36 -05:00
end
2012-01-16 23:02:58 -05:00
2012-01-16 19:14:47 -05:00
end
end