Skip to content

Commit

Permalink
restore default statsd options
Browse files Browse the repository at this point in the history
  • Loading branch information
dolph committed Feb 25, 2023
1 parent b89e84c commit f92299b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ func LoadConfig(path string) *Config {
}

// Apply some default values
// if cfg.StatsdHost == "" {
// cfg.StatsdHost = "127.0.0.1"
// }
// if cfg.StatsdPort == 0 {
// cfg.StatsdPort = 8125
// }
// if cfg.StatsdProtocol == "" {
// cfg.StatsdProtocol = "udp"
// }
if cfg.StatsdHost == "" {
cfg.StatsdHost = "127.0.0.1"
}
if cfg.StatsdPort == 0 {
cfg.StatsdPort = 8125
}
if cfg.StatsdProtocol == "" {
cfg.StatsdProtocol = "udp"
}

return &cfg
}

0 comments on commit f92299b

Please sign in to comment.