Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Load config from Viper on Before hook #51

Merged
merged 7 commits into from
Mar 17, 2020
Merged

Conversation

refs
Copy link
Member

@refs refs commented Mar 17, 2020

@update-docs
Copy link

update-docs bot commented Mar 17, 2020

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@@ -155,8 +156,8 @@ func Server(cfg *config.Config) *cli.Command {
http.Context(ctx),
http.Config(cfg),
http.Metrics(metrics),
http.Flags(flagset.RootWithConfig(cfg)),
http.Flags(flagset.ServerWithConfig(cfg)),
http.Flags(flagset.RootWithConfig(config.New())),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are you creating new config objects?

@butonic butonic merged commit c16003d into master Mar 17, 2020
@delete-merged-branch delete-merged-branch bot deleted the feature/propagate-config-file branch March 17, 2020 16:48
@refs refs self-assigned this Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants