Skip to content

Commit

Permalink
max_retry の指定を修正する
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexa committed Mar 4, 2024
1 parent bc8fd19 commit 0206510
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ func setDefaultsConfig(config *Config) {

// 未指定の場合のリトライ回数は 0
if config.MaxRetry == nil {
*config.MaxRetry = DefaultMaxRetry
maxRetry := DefaultMaxRetry
config.MaxRetry = &maxRetry
}
}
func validateConfig(config *Config) error {
Expand Down Expand Up @@ -215,4 +216,5 @@ func ShowConfig(config *Config) {
zlog.Info().Str("exporter_listen_addr", config.ExporterListenAddr).Msg("CONF")
zlog.Info().Int("exporter_listen_port", config.ExporterListenPort).Msg("CONF")

zlog.Info().Int("max_retry", *config.MaxRetry).Msg("CONF")
}

0 comments on commit 0206510

Please sign in to comment.