Skip to content

Commit

Permalink
fixed result of start_spider and stop_spider
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc committed Dec 11, 2019
1 parent f3dd271 commit fb24879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/crawly/engine.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ defmodule Crawly.Engine do
defstruct started_spiders: %{}

@spec start_spider(module()) ::
{:ok, started_spiders()}
:ok
| {:error, :spider_already_started}
| {:error, :atom}
def start_spider(spider_name) do
GenServer.call(__MODULE__, {:start_spider, spider_name})
end

@spec stop_spider(module()) ::
{:ok, started_spiders()} | {:error, :spider_not_running}
:ok | {:error, :spider_not_running}
def stop_spider(spider_name) do
GenServer.call(__MODULE__, {:stop_spider, spider_name})
end
Expand Down

0 comments on commit fb24879

Please sign in to comment.