avoid reloading too fast

Massimo Melina committed Jan 8, 2022 at 23:53 UTC 0a2b04341bb3e5eaf312907efac49700ebf61969
1 file changed +1 -1
src/watchLoad.ts
+1 -1
@@ -8,7 +8,7 @@ export type WatchLoadCanceller = () => void
8 export function watchLoad(path:string, parser:(data:any)=>void|Promise<void>): WatchLoadCanceller {
9 let doing = false
10 let watcher: FSWatcher
11 - const debounced = _.debounce(load, 100)
11 + const debounced = _.debounce(load, 500)
12 const timer = setInterval(()=>{
13 try {
14 watcher = watch(path, debounced)