()
| 540 | } |
| 541 | |
| 542 | func (w *Watcher) resetIdleTimer() { |
| 543 | w.idleTicker.Reset(w.cfg.IdleTimeout) |
| 544 | w.lastReset.Store(time.Now()) |
| 545 | } |
| 546 | |
| 547 | func (w *Watcher) expires() time.Time { |
| 548 | if !w.running() || w.cfg.IdleTimeout <= 0 { |
no outgoing calls
no test coverage detected