Skip to content

Commit

Permalink
Revert "review"
Browse files Browse the repository at this point in the history
This reverts commit 59926f8.
  • Loading branch information
Wanghb1 committed Dec 2, 2024
1 parent 59926f8 commit 2389215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/protect/protect.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ func Init() {
enableInstanceNullProtect = config.GetBool("instance_null_protect.enable", false)
restartProtectInterval = time.Duration(config.GetInt("instance_null_protect.restart_protect_interval", 120)) * time.Second
if restartProtectInterval > maxInterval || restartProtectInterval < minInterval {
log.Warn(fmt.Sprintf("invalid instance_null_protect.restart_protect_interval,"+
" must between %d-%ds inclusively", minInterval, maxInterval))
log.Warn(fmt.Sprintf("invalid instance_null_protect.restart_protect_interval: %d,"+
" must between %d-%ds inclusively", restartProtectInterval, minInterval, maxInterval))
restartProtectInterval = defaultRestartProtectInterval * time.Second
}
RestartProtectHttpCode = config.GetInt("instance_null_protect.http_status", http.StatusNotModified)
Expand Down

0 comments on commit 2389215

Please sign in to comment.