prevent negative timeout settings (#482)

* prevent negative timeout settings

* fix misleading comment
This commit is contained in:
Kevin Wan
2021-02-19 10:44:39 +08:00
committed by GitHub
parent d239952d2d
commit 086113c843
2 changed files with 3 additions and 3 deletions

View File

@@ -14,8 +14,7 @@ type (
Auth bool `json:",optional"`
Redis redis.RedisKeyConf `json:",optional"`
StrictControl bool `json:",optional"`
// pending forever is not allowed
// never set it to 0, if zero, the underlying will set to 2s automatically
// setting 0 means no timeout
Timeout int64 `json:",default=2000"`
CpuThreshold int64 `json:",default=900,range=[0:1000]"`
}