-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add :name config option to Supervisor #117
Add :name config option to Supervisor #117
Conversation
When starting Money.ExchangeRate.Supervisor with the `:restart` option, the supervisor is expected to be named. The option was dropped in v5.0.2 but is still required.
Thanks for the PR. I manually merged it and published ex_money. Changelog: Bug Fixes
|
@kipcole9 thank you! I wasn't able to come up with a good plan for testing this, and couldn't find any similar tests in the test suite. Do you think it's useful to add this? |
Definitely a regression, apologies for the inconvenience. It came about during some refactoring to use the "new style" GenServer child specs. Good point about the test - I don't have any smart ideas but I'll think on it over another coffee :-) |
No problem at all! And happy to be able to contribute back :) I may have another PR coming up in CLDR re: Thanks again! 🙏 |
On reflection the way to test is to abstract the configuration of the supervisor which I have now done. I have re-published version 5.2.1 so you will have to reinstall it. No functional difference but I'm happier that the supervisor configuration is now in Enhancements
Bug Fixes
|
Please do log an issue over at ex_cldr_numbers or here if you have a reproducible case. |
Will do! I think it's related to elixir-cldr/cldr_numbers@3bc8291, expect an issue/PR soon :) |
Good call on the supervisor termination. I re-published again 5.2.1 with updated changelog. Very hacky release process this morning (my time). Updated changelog: Enhancements
Bug Fixes
|
Seems that I was wrong and it just required I believe that should also be updated to round_nearest, correct? |
That's how we like it best haha, good morning :) |
Most likely. I need to create a test case. |
I'm running the tests with the change as we speak, but 566 locales seems to be quite a lot, even on 16 cores |
it takes maybe 30 minutes on my iMac Pro of similar configuration. Thats why there is a warning against configuring all locales :-) |
Moving this conversation to https://github.com/elixir-cldr/cldr_numbers |
When starting Money.ExchangeRate.Supervisor with the
:restart
option, the supervisor is expected to be named. The option was dropped in v5.0.2 but is still required.I'm not sure if this was deleted on purpose, or if it seemed obsolete.
Thanks! We love
ex_money
:)