backport of commit 3d7f20e6c6

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

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

Loading…
Cancel
Save