Skip to content

Commit

Permalink
🎨 Improve stability of data sync on some file systems siyuan-note/siy…
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Oct 29, 2023
1 parent cfb485a commit be65f6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ func (repo *Repo) uploadChunks(upsertChunkIDs []string, context map[string]inter
func (repo *Repo) localNotFoundChunks(chunkIDs []string) (ret []string, err error) {
for _, chunkID := range chunkIDs {
if _, getChunkErr := repo.store.Stat(chunkID); nil != getChunkErr {
if isNoSuchFileOrDirErr(err) {
if isNoSuchFileOrDirErr(getChunkErr) {
ret = append(ret, chunkID)
continue
}
Expand All @@ -1144,7 +1144,7 @@ func (repo *Repo) localNotFoundChunks(chunkIDs []string) (ret []string, err erro
func (repo *Repo) localNotFoundFiles(fileIDs []string) (ret []string, err error) {
for _, fileID := range fileIDs {
if _, getFileErr := repo.store.Stat(fileID); nil != getFileErr {
if isNoSuchFileOrDirErr(err) {
if isNoSuchFileOrDirErr(getFileErr) {
ret = append(ret, fileID)
continue
}
Expand Down

0 comments on commit be65f6f

Please sign in to comment.