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:
1 parent
c3dbf0ab01
commit
f0f7cfbbed
2 files changed
+60
-53
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user