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

Rename first adapter in the pool for backwards compatability #169

Merged
merged 1 commit into from
Apr 5, 2022

Conversation

Gazler
Copy link
Member

@Gazler Gazler commented Apr 5, 2022

Pubsub v2.0 expects there to be a single process for the process group
named Elixir.my_pubsub.Adapter.

v2.1 added pools, which means that the processes are supervised with a
supervisor called Elixir.my_pubsub.Adapter along with n processes
named Elixir.my_pubsub.Adapter_n where n is the pool size.

This commit changes the supervisor name to
Elixir.my_pubsub.Adapter_supervisor
and renames pool item 1 to be Elixir.my_pubsub.Adapter. This will
allow backwards compatability with v2.0 when the pool size is set to 1.

Pubsub v2.0 expects there to be a single process for the process group
named `Elixir.my_pubsub.Adapter`.

v2.1 added pools, which means that the processes are supervised with a
supervisor called `Elixir.my_pubsub.Adapter` along with n processes
named `Elixir.my_pubsub.Adapter_n` where n is the pool size.

This commit changes the supervisor name to
`Elixir.my_pubsub.Adapter_supervisor`
and renames pool item 1 to be `Elixir.my_pubsub.Adapter`. This will
allow backwards compatability with v2.0 when the pool size is set to 1.
@chrismccord chrismccord merged commit 421ef02 into phoenixframework:master Apr 5, 2022
@chrismccord
Copy link
Member

Thanks. I will cut a new 2.1.1. This also closes #168 ❤️❤️❤️🐥🔥

arkgil added a commit to Whatnot-Inc/phoenix_pubsub that referenced this pull request Oct 11, 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

3 participants