Skip to content

Commit

Permalink
improve crawly engine typespecs (#194)
Browse files Browse the repository at this point in the history
start_spider was not accepting genserver options
  • Loading branch information
gfrancischelli committed Feb 1, 2022
1 parent 042135c commit 239dc26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/crawly/engine.ex
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ defmodule Crawly.Engine do
### Backward compatibility
If the 2nd positional argument is a binary, it will be set as the `:crawl_id`. Deprecated, will be removed in the future.
"""
@type crawl_id_opt :: {:crawl_id, binary()}
@type crawl_id_opt :: {:crawl_id, binary()} | GenServer.option()
@spec start_spider(Crawly.spider(), opts) :: result
when opts: [crawl_id_opt],
result:
Expand Down

0 comments on commit 239dc26

Please sign in to comment.