-
Notifications
You must be signed in to change notification settings - Fork 95
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
Possible bug in :cachex_notify event handling? #325
Comments
Yes, this is a bug - although like you say I highly doubt this ever affected anyone (and it dates back six years). Feel free to PR a fix! |
feld
added a commit
to feld/cachex
that referenced
this issue
Jan 26, 2024
…red Hook is defined with a timeout value Fixes whitfin#325
whitfin
pushed a commit
that referenced
this issue
Jan 29, 2024
…red Hook is defined with a timeout value Fixes #325
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cachex/lib/cachex/hook.ex
Lines 165 to 182 in 5b8983e
I was trying to refactor this for a dialyzer error that seemed like it was mostly benign, but then I realized there may be a logic error here which (surprisingly) neither the compiler nor dialyzer picked up. Follow this logic:
{:ok, {:ok, new_state}} -> {:noreply, state}
... but we returned the old state anyway just like if the Task didn't yield in time? Why?The text was updated successfully, but these errors were encountered: