elixir-crawly / crawly

Crawly, a high-level web crawling & scraping framework for Elixir.
https://hexdocs.pm/crawly
Apache License 2.0
976 stars 115 forks source link

Fixes weird GenServer bug #225

Closed azrosen92 closed 1 year ago

azrosen92 commented 2 years ago

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.

Ziinc commented 1 year ago

irrelevant to issue, see issue comment