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

Minor Fixes Found By Dialyzer #74

Merged
merged 5 commits into from
Jan 27, 2025

Conversation

probably-not
Copy link
Contributor

This solves a couple of minor fixes that were found by dialyzer as I was messing with #73.

  1. The File.stream! call in code_sync.ex had its values out of order - the list of modes should be the last parameter of the call.
  2. In FLAME.Pool.place_child/3, there was a match for an :ignore case coming back from FLAME.Runner.place_child/3. This case can't happen - FLAME.Runner.place_child/3 calls out to FLAME.Runner.call/4, which will either exit, or return the value of the call to FLAME.Runner.remote_call/5, which can only return {:ok, {result, pids}} or {:exit, reason}.

This PR was branched out from my fork which also includes the change from #73, which is why the commit for setting the timeout is also included here.

lib/flame/runner.ex Outdated Show resolved Hide resolved
lib/flame/code_sync.ex Outdated Show resolved Hide resolved
@josevalim josevalim merged commit 146b934 into phoenixframework:main Jan 27, 2025
1 check passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

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.

2 participants