Skip to content

Commit

Permalink
Remove jargon from module name
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Apr 8, 2022
1 parent e2fb43b commit 4b0b1d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sidekiq/xaclient.rb
Expand Up @@ -8,7 +8,7 @@
end

module Sidekiq
module XAClient
module TransactionAwareClient
include AfterCommitEverywhere

##
Expand Down Expand Up @@ -46,7 +46,7 @@ def push_bulk(items)
# Use `Sidekiq.transactional_push!` in your sidekiq.rb initializer
module Sidekiq
def self.transactional_push!(policy: "commit") # TODO: is this knob really necessary?
Sidekiq::Client.prepend(Sidekiq::XAClient)
Sidekiq::Client.prepend(Sidekiq::TransactionAwareClient)
default_job_options["xa"] = policy
end
end

0 comments on commit 4b0b1d5

Please sign in to comment.