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

refactor(config): use viper.SetDefault instead of default struct #136

Merged
merged 1 commit into from
Sep 8, 2024

Conversation

nuxencs
Copy link
Owner

@nuxencs nuxencs commented Sep 7, 2024

Use viper.SetDefault instead of a struct to define the default values if none are provided in the config. This makes it more consistent and less error-prone when dealing with slices.
Also reload a few more config values with DynamicReload.

@nuxencs nuxencs added Area: Config Related to the config Type: Refactor Refactoring of code labels Sep 7, 2024
@nuxencs nuxencs marked this pull request as ready for review September 7, 2024 16:31
@nuxencs nuxencs added this to the v0.9.1 milestone Sep 8, 2024
@nuxencs nuxencs force-pushed the refactor/config-defaults-with-viper branch from 76e53eb to 16c0356 Compare September 8, 2024 14:47
@nuxencs nuxencs merged commit 61dd974 into develop Sep 8, 2024
12 checks passed
@nuxencs nuxencs deleted the refactor/config-defaults-with-viper branch September 8, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Config Related to the config Type: Refactor Refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants