Skip to content

Commit

Permalink
common/config: add default for alarm.interval
Browse files Browse the repository at this point in the history
  • Loading branch information
kreatoo committed Aug 29, 2024
1 parent 5334f97 commit c7bf39f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ func ConfInit(configName string, config interface{}) interface{} {
viper.AddConfigPath("/etc/mono")
viper.SetConfigType("yaml")

viper.SetDefault("alarm.interval", 3)

err := viper.ReadInConfig()

if err != nil {
Expand Down

0 comments on commit c7bf39f

Please sign in to comment.