Plugins: fix watchdog interval
This commit is contained in:
parent
e963bcd03d
commit
16821360fe
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ func NewWatchDogFromConfig(ctx context.Context, other map[string]interface{}) (P
|
|||
}
|
||||
|
||||
func (o *watchdogPlugin) wdt(ctx context.Context, set func() error) {
|
||||
for tick := time.Tick(o.timeout); ; {
|
||||
for tick := time.Tick(o.timeout / 2); ; {
|
||||
select {
|
||||
case <-tick:
|
||||
if err := set(); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue