backport of commit 81d47e0819

pull/5018/head
Sorawis Nilparuk 2 years ago
parent 983d03fdd4
commit d45c852da2

@ -672,7 +672,7 @@ func Parse(d string) (*Config, error) {
}
result.Controller.GetDownstreamWorkersTimeoutDuration = t
}
if result.Controller.GetDownstreamWorkersTimeoutDuration <= 0 {
if result.Controller.GetDownstreamWorkersTimeoutDuration < 0 {
return nil, errors.New("get downstream workers timeout must be greater than 0")
}

Loading…
Cancel
Save