Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes weird GenServer bug #225

Closed
wants to merge 1 commit into from
Closed

Conversation

azrosen92
Copy link

As pointed out in this issue
#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
elixir-crawly#224,
`GenServer.call(__MODULE__, {:pop, Elixir.Homebase})`, which is invoked
from the worker.ex
[here](https://github.com/elixir-crawly/crawly/blob/13fe05b400db46716729bd15e4ef1b67d12db5ee/lib/crawly/worker.ex#L40),
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
Copy link
Collaborator

Ziinc commented Nov 26, 2022

irrelevant to issue, see issue comment

@Ziinc Ziinc closed this Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants