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

The worker/2 function from the Supervisor.Spec module is deprecated #287

Closed
wants to merge 3 commits into from

Conversation

0dayfall
Copy link

Instead of using Supervisor.Spec.worker/2, you should define your child processes within the Supervisor module using the child_spec/1 function.

Copy link
Collaborator

@iamvery iamvery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Collaborator

@iamvery iamvery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we may have to update the Elixir used for the build in order to get this passing.

@0dayfall
Copy link
Author

0dayfall commented Jan 4, 2024

It looks like we may have to update the Elixir used for the build in order to get this passing.

Ok, updated to Elixir v1.5

@@ -21,7 +21,7 @@ jobs:
- name: Set up Elixir
uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f
with:
elixir-version: '1.12.3' # Define the elixir version [required]
elixir-version: '1.5' # Define the elixir version [required]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ What this meant to be 1.15? I think the latest is 1.16.

Copy link
Author

@0dayfall 0dayfall Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I should change to 1.16 instead, I made a new pull request by mistake.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #288

@iamvery iamvery closed this Jan 16, 2024
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