Skip to content

Commit

Permalink
Ensure default opts for standard transactions
Browse files Browse the repository at this point in the history
Without default opts each transaction is logged. Many standard
operations execute each second, which makes for noisy logs. Now
transaction opts are passed as a third argument to ensure defaults
are applied.
  • Loading branch information
sorentwo committed Aug 16, 2024
1 parent 141f403 commit f07ee21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oban/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ defmodule Oban.Repo do
end

defp transaction(conf, fun_or_multi, opts, attempt) do
__dispatch__(:transaction, [conf, fun_or_multi, opts])
__dispatch__(:transaction, [conf, fun_or_multi], opts)
rescue
error in [DBConnection.ConnectionError, Postgrex.Error] ->
opts = Keyword.merge(@retry_opts, opts)
Expand Down

0 comments on commit f07ee21

Please sign in to comment.