DNSSEC-Provisioning / music

Multi-Signer Controller (MuSiC)
5 stars 5 forks source link

Changing config values in code might be problematic #181

Closed romu42 closed 1 year ago

romu42 commented 1 year ago

See if we can implement code below in configuration validation instead.

fsmengine.go

    completeinterval := viper.GetInt("fsmengine.intervals.complete")
    if completeinterval < 3600 || completeinterval > 24*3600 {
        completeinterval = 7200
        if !viper.GetBool("common.debug") {
            completeinterval = 30
        }
    }
romu42 commented 1 year ago

we have validation on min and max for completeinterval now and log when in Debug mode.