mirror of
https://github.com/eosswedenorg/thalos
synced 2026-08-31 21:08:14 +02:00
internal/config: remove shorthand ship config (where it is possible to have "ship" key only contain a url string instead of struct)
It makes parsing harder and i don't think anyone uses it and its not that useful tbh.
This commit is contained in:
parent
4a4489e2be
commit
e54a4fa929
3 changed files with 6 additions and 78 deletions
|
|
@ -109,7 +109,6 @@ func (b *Builder) Build() (*Config, error) {
|
|||
mapstructure.TextUnmarshallerHookFunc(),
|
||||
mapstructure.StringToTimeDurationHookFunc(),
|
||||
mapstructure.StringToSliceHookFunc(","),
|
||||
decodeShorthandShipConfig,
|
||||
)
|
||||
|
||||
err := v.Unmarshal(&conf, viper.DecodeHook(decoders))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue