Increased file watcher debounce duration from 1s to 10s (#11494)
Users were reporting that when they were actively editing a skill file, they would see frequent errors (one per second) across all of their active session until they fixed all frontmatter parse errors. This change will reduce the chatter at the expense of a slightly longer delay before skills are updated in the UI. This addresses #11385
This commit is contained in:
parent
de6f2ef746
commit
81c534102e
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ struct FileWatcherInner {
|
|||
watched_paths: HashMap<PathBuf, RecursiveMode>,
|
||||
}
|
||||
|
||||
const WATCHER_THROTTLE_INTERVAL: Duration = Duration::from_secs(1);
|
||||
const WATCHER_THROTTLE_INTERVAL: Duration = Duration::from_secs(10);
|
||||
|
||||
/// Coalesces bursts of paths and emits at most once per interval.
|
||||
struct ThrottledPaths {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue