As pointed out in this issue
https://github.com/elixir-crawly/crawly/issues/224, GenServer.call(__MODULE__, {:pop, Elixir.Homebase}), which is invoked from the worker.ex
here, returns the value :ok, shortly after starting the spider. With this change, the worker treats the returned :ok value similar to a returned nil, and waits for a request to be available.
As pointed out in this issue https://github.com/elixir-crawly/crawly/issues/224,
GenServer.call(__MODULE__, {:pop, Elixir.Homebase})
, which is invoked from the worker.ex here, returns the value:ok
, shortly after starting the spider. With this change, the worker treats the returned:ok
value similar to a returnednil
, and waits for a request to be available.