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

Allow code_reload.node to be a list of nodes #1413

Merged
merged 1 commit into from
Jan 8, 2024
Merged

Allow code_reload.node to be a list of nodes #1413

merged 1 commit into from
Jan 8, 2024

Conversation

mkuratczyk
Copy link
Contributor

Hi. When working on clustered applications (RabbitMQ in my case), it's useful to reload the code on all nodes in the cluster. Otherwise I can't really use reloading since I still need to restart the other nodes to pick up the changes. This is a very rudimentary change that gets the job done for me (I've been happily using it for a few days). Would you accept something like that?

I decided to "overload" the code_reload.node setting and allow it to be a list. Alternatively, we could have a separate field (code_reload.nodes) but then we would need to handle both being set for example. I'm happy to make such changes if you prefer.

Thanks,

@plux
Copy link
Contributor

plux commented Dec 21, 2023

Thanks for your contribution @mkuratczyk !
This seems like a fine addition.
Seems like there is a conflict hat needs to be resolved in order to merge this.
Please rebase on main and resolve the conflict so we can merge it.

It can now be either
```
code_reload:
  node: node@localhost
```

or
```
code_reload:
  node:
    - node-1@localhost
    - node-2@localhost
```
@mkuratczyk
Copy link
Contributor Author

Done. Thank you!

@plux
Copy link
Contributor

plux commented Jan 8, 2024

Thanks for your contribution @mkuratczyk !

CI seems to be a failing on coveralls for some reason, I will merge anyway.

@plux plux merged commit 22ae2c0 into erlang-ls:main Jan 8, 2024
3 of 6 checks passed
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