[#493] ir: Set default config values of prometheus and pprof servers

Although the default values for configurable addresses are empty strings,
explicitly specifying the default values allows you to know about all
possible configurations.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-05-12 10:43:02 +03:00 committed by Alex Vanin
parent ece6618560
commit 6d7fff1870

View file

@ -32,8 +32,10 @@ func newConfig(path string) (*viper.Viper, error) {
func defaultConfiguration(cfg *viper.Viper) {
cfg.SetDefault("logger.level", "info")
cfg.SetDefault("profiler.address", "")
cfg.SetDefault("profiler.shutdown_timeout", "30s")
cfg.SetDefault("metrics.address", "")
cfg.SetDefault("metrics.shutdown_timeout", "30s")
cfg.SetDefault("without_mainnet", false)