mirror of
https://github.com/eosswedenorg/thalos
synced 2026-08-31 21:08:14 +02:00
internal/config: skip creating a Config struct with default values. those should be set by flags or viper in the builder
This commit is contained in:
parent
e54a4fa929
commit
69a36e016c
3 changed files with 1 additions and 64 deletions
|
|
@ -81,7 +81,7 @@ func (b *Builder) Build() (*Config, error) {
|
|||
return nil, errors.New("Config not set")
|
||||
}
|
||||
|
||||
conf := New()
|
||||
conf := Config{}
|
||||
|
||||
v := viper.New()
|
||||
v.SetConfigType("yaml")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue