Skip to content

Commit

Permalink
🐛 Full manual sync mode causes data conflicts siyuan-note/siyuan#13387
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Dec 6, 2024
1 parent 7d657c1 commit 2bd2e50
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sync_manual.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,13 @@ func (repo *Repo) SyncUpload(context map[string]interface{}) (trafficStat *Traff
return
}

// 更新本地同步点
err = repo.UpdateLatestSync(latest)
if nil != err {
logging.LogErrorf("update latest sync failed: %s", err)
return
}

// 统计流量
go repo.cloud.AddTraffic(&cloud.Traffic{
UploadBytes: trafficStat.UploadBytes,
Expand Down

0 comments on commit 2bd2e50

Please sign in to comment.