perf: throttle watch updates (#2311)

* perf: throttle watch updates

* Fix file not exist error in the UI

* Use separate timeout for each file
This commit is contained in:
Joe Lim authored and GitHub committed 2025-12-19 19:08:55 +11:00
1 parent c3dbf0ab01
commit f0f7cfbbed
2 files changed
+60 -53

No files matched your search

+4 -1
View File
@@ -175,7 +175,10 @@ func readdir(path string) ([]*file, error) {
files := make([]*file, 0, len(names))
for _, fname := range names {
files = append(files, newFile(filepath.Join(path, fname)))
file := newFile(filepath.Join(path, fname))
if !os.IsNotExist(file.err) {
files = append(files, file)
}
}
return files, err