Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename first adapter in the pool for backwards compatability (#169)
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.
- Loading branch information