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

Create state file only if load-server-state is enabled #721

Merged
merged 2 commits into from
Jan 17, 2021

Conversation

jcmoraisjr
Copy link
Owner

Save the current state might be a bit expensive if the configuration is very large. This update makes the reload script read the current state only if the state would be used later.

Follow some good patterns in the reload script, eg using vars for params
and simplifying the logic. Now any strategy != `native` sent to the
script means `reusesocket`, which is safe since the script does not have
a public facade.
Save the current state might be a bit expensive if the configuration is
very large. This update makes the reload script read the current state
only if the state would be used later.
@jcmoraisjr jcmoraisjr merged commit 3615dd8 into master Jan 17, 2021
@jcmoraisjr jcmoraisjr deleted the jm-read-state branch January 17, 2021 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant