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 value of auto_size is not judged when the worker is removed #185

Open
tigercl opened this issue Dec 10, 2020 · 1 comment
Open

The value of auto_size is not judged when the worker is removed #185

tigercl opened this issue Dec 10, 2020 · 1 comment

Comments

@tigercl
Copy link

tigercl commented Dec 10, 2020

When you do not use auto_size, every time you remove a worker, the size of the pool will become smaller. When it becomes 0, you will never be able to add a worker.

@tigercl
Copy link
Author

tigercl commented Dec 10, 2020

I think the problem is in function del_slot, the following part of the code should be redundant:

del_slot(Name, [{Name,_}]) ->
    [];

At the same time, the code in do_remove_worker_ seems to be missing the processing of auto_size.

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

No branches or pull requests

1 participant