From cb86b13bba76475bf7bd6e56735078776409bba0 Mon Sep 17 00:00:00 2001 From: Sky Johnson Date: Fri, 14 Mar 2025 22:47:04 -0500 Subject: [PATCH] space out watcher timing --- core/watchers/watcher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/watchers/watcher.go b/core/watchers/watcher.go index d758d14..2890745 100644 --- a/core/watchers/watcher.go +++ b/core/watchers/watcher.go @@ -15,8 +15,8 @@ const ( defaultPollInterval = 1 * time.Second // Initial polling interval extendedPollInterval = 5 * time.Second // Extended polling interval after inactivity maxPollInterval = 10 * time.Second // Maximum polling interval after long inactivity - inactivityThreshold = 30 * time.Second // Time before extending polling interval - secondExtendThreshold = 2 * time.Minute // Time before second extension + inactivityThreshold = 5 * time.Minute // Time before extending polling interval + secondExtendThreshold = 30 * time.Minute // Time before second extension ) // Default debounce time between detected change and callback