mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-10 17:24:21 +01:00
⚡ Improve data sync performance for booting https://github.com/siyuan-note/siyuan/issues/13216
This commit is contained in:
parent
eba4dfa0da
commit
89f1887c3b
16 changed files with 153 additions and 113 deletions
|
|
@ -82,7 +82,7 @@ func RemoveIndexes(paths []string) {
|
|||
|
||||
func listSyFiles(dir string) (ret []string) {
|
||||
dirPath := filepath.Join(util.DataDir, dir)
|
||||
err := filelock.Walk(dirPath, func(path string, d fs.FileInfo, err error) error {
|
||||
err := filelock.Walk(dirPath, func(path string, d fs.DirEntry, err error) error {
|
||||
if err != nil {
|
||||
logging.LogWarnf("walk dir [%s] failed: %s", dirPath, err)
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue