Skip to content

Commit

Permalink
Fix undefined reference
Browse files Browse the repository at this point in the history
  • Loading branch information
krasenyp committed Dec 5, 2022
1 parent 2892ff2 commit e5562da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/erlef/jobs.ex
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ defmodule Erlef.Jobs do
# order to return a tuple result from the transaction.
@spec transact((fun() -> {:ok | :error, term()}), Keyword.t()) :: {:ok | :error, term()}
defp transact(fun, opts \\ []) when is_function(fun) do
transaction(
Repo.transaction(
fn repo ->
{:arity, arity} = Function.info(fun, :arity)

Expand All @@ -378,7 +378,7 @@ defmodule Erlef.Jobs do
result

{:error, error} ->
rollback(error)
Repo.rollback(error)
end
end,
opts
Expand Down

0 comments on commit e5562da

Please sign in to comment.