TRA-3803 handle k8s watch timeouts (#372)

* Update watch.go and debounce.go

* Update debounce.go

* Update watch.go

* Update watch.go

* Update watch.go

* Update watch.go

* Update watch.go

Co-authored-by: Rami <rami@rami-work>
This commit is contained in:
RamiBerm
2021-10-19 14:41:37 +03:00
committed by GitHub
parent 145e7cda01
commit 0473181f0a
2 changed files with 69 additions and 26 deletions

View File

@@ -52,3 +52,7 @@ func (d *Debouncer) SetOn() error {
d.timer = time.AfterFunc(d.timeout, d.callback)
return nil
}
func (d *Debouncer) IsOn() bool {
return d.running
}