Skip to content

Commit

Permalink
Use keyword list for options (#178)
Browse files Browse the repository at this point in the history
Typespec specifies map type for options, however Splash fetcher expects
keyword list, few examples in the documentation also show usage of
keyword list.

Co-authored-by: Ziinc <Ziinc@users.noreply.github.com>
Co-authored-by: oltarasenko <oltarasenko@gmail.com>
  • Loading branch information
3 people committed Sep 8, 2021
1 parent cf892a2 commit 3e4a530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/crawly/fetchers/fetcher.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ defmodule Crawly.Fetchers.Fetcher do
@callback fetch(request, options) :: {:ok, response} | {:error, reason}
when request: Crawly.Request.t(),
response: Crawly.Response.t(),
options: map(),
options: keyword(),
reason: term()
end

0 comments on commit 3e4a530

Please sign in to comment.