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

Decouple configs from application's state #422

Merged
merged 4 commits into from
Apr 21, 2024

Conversation

aome510
Copy link
Owner

@aome510 aome510 commented Apr 21, 2024

Changes

  • remove configs: Configs from application's State struct
  • add config::CONFIGS as a global static variable representing the application's configs
  • implement config::get_config to get a static reference of config::CONFIGS and config::set_config to set the global variable

@aome510 aome510 merged commit d91318e into master Apr 21, 2024
3 checks passed
@aome510 aome510 deleted the separate-configs-from-state branch April 21, 2024 18:57
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.

None yet

1 participant