lib/tobox/worker.rb in tobox-0.1.0 vs lib/tobox/worker.rb in tobox-0.1.1
- old
+ new
@@ -1,12 +1,12 @@
# frozen_string_literal: true
module Tobox
class Worker
- def initialize(configuration)
+ def initialize(label, configuration)
@wait_for_events_delay = configuration[:wait_for_events_delay]
@handlers = configuration.handlers || {}
- @fetcher = Fetcher.new(configuration)
+ @fetcher = Fetcher.new(label, configuration)
@finished = false
return unless (message_to_arguments = configuration.arguments_handler)
define_singleton_method(:message_to_arguments, &message_to_arguments)