Skip to content

Commit

Permalink
event_store_locator vibes
Browse files Browse the repository at this point in the history
Co-authored-by: Szymon Fiedler <[email protected]>
  • Loading branch information
mostlyobvious and fidel committed Sep 29, 2023
1 parent d52040b commit c70019a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def perform(event)

SidekiqHandlerWithHelper.prepend(
RailsEventStore::AsyncHandler.with(
event_store: event_store,
event_store_locator: ->{ event_store },
serializer: serializer
)
)
Expand Down
2 changes: 1 addition & 1 deletion rails_event_store/spec/async_handler_helpers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def perform(event)

specify "ActiveJob with AsyncHandlerJobIdOnly prepended with event store locator" do
HandlerE = Class.new(IdOnlyHandler)
HandlerE.prepend AsyncHandlerJobIdOnly.with(event_store: nil, event_store_locator: -> { event_store })
HandlerE.prepend AsyncHandlerJobIdOnly.with(event_store_locator: -> { event_store })
event_store.subscribe_to_all_events(HandlerE)
event_store.publish(ev = RubyEventStore::Event.new)

Expand Down

0 comments on commit c70019a

Please sign in to comment.