Skip to content

Commit

Permalink
Fix run_batch function specs
Browse files Browse the repository at this point in the history
Also add basic repo_opts type and minor formatting
  • Loading branch information
Jason Axelson committed Jan 18, 2019
1 parent 9a24709 commit 0a4f66d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## v1.0.5 - Unreleased

- Bug Fix: Fix dialyzer spec for run_batch function

## v1.0.4 - 2018-09-14

- Bug Fix: Poor supervisor structure has been improved, which fixes large memory
Expand Down
5 changes: 3 additions & 2 deletions lib/dataloader/ecto.ex
Expand Up @@ -237,11 +237,12 @@ if Code.ensure_loaded?(Ecto) do
}

@type query_fun :: (Ecto.Queryable.t(), any -> Ecto.Queryable.t())
@type batch_fun :: (Ecto.Queryable.t(), Ecto.Query.t(), [any], Keyword.t() -> [any])
@type repo_opts :: Keyword.t()
@type batch_fun :: (Ecto.Queryable.t(), Ecto.Query.t(), any, [any], repo_opts -> [any])
@type opt ::
{:query, query_fun}
| {:default_params, Map.t()}
| {:repo_opts, Keyword.t()}
| {:repo_opts, repo_opts}
| {:timeout, pos_integer}
| {:run_batch, batch_fun()}

Expand Down

0 comments on commit 0a4f66d

Please sign in to comment.