Skip to content

Commit

Permalink
Fix setup calls
Browse files Browse the repository at this point in the history
  • Loading branch information
dorner committed Dec 11, 2024
1 parent f1a714c commit 9170520
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/deimos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ def start_outbox_backend!(thread_count: 1)

def setup_karafka
Karafka.producer.middleware.append(Deimos::ProducerMiddleware)
# for multiple setup calls
Karafka.producer.config.kafka =
Karafka::Setup::AttributesMap.producer(Karafka::Setup::Config.config.kafka.dup)
EVENT_TYPES.each { |type| Karafka.monitor.notifications_bus.register_event(type) }

Karafka.producer.monitor.subscribe('error.occurred') do |event|
Expand Down
2 changes: 1 addition & 1 deletion lib/deimos/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Deimos
VERSION = '2.0.0-alpha6'
VERSION = '2.0.0-alpha7'
end

0 comments on commit 9170520

Please sign in to comment.