mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 09:48:49 +02:00
fix(idlewatcher): incorrect "dependency has positive idle timeout" error
This commit is contained in:
@@ -200,7 +200,7 @@ func NewWatcher(parent task.Parent, r types.Route, cfg *types.IdlewatcherConfig)
|
|||||||
depCfg = new(types.IdlewatcherConfig)
|
depCfg = new(types.IdlewatcherConfig)
|
||||||
depCfg.IdlewatcherConfigBase = cfg.IdlewatcherConfigBase
|
depCfg.IdlewatcherConfigBase = cfg.IdlewatcherConfigBase
|
||||||
depCfg.IdleTimeout = neverTick // disable auto sleep for dependencies
|
depCfg.IdleTimeout = neverTick // disable auto sleep for dependencies
|
||||||
} else if depCfg.IdleTimeout > 0 {
|
} else if depCfg.IdleTimeout > 0 && depCfg.IdleTimeout != neverTick {
|
||||||
depErrors.Addf("dependency %q has positive idle timeout %s", dep, depCfg.IdleTimeout)
|
depErrors.Addf("dependency %q has positive idle timeout %s", dep, depCfg.IdleTimeout)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user