Skip to content

Commit

Permalink
🎨 Improve data synchronization stability siyuan-note/siyuan#12991
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Nov 2, 2024
1 parent 790fdbf commit b415ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ func (repo *Repo) downloadCloudLatest(context map[string]interface{}) (downloadB
if "" != seqNumLatestID && latestID != seqNumLatestID {
logging.LogWarnf("cloud latest [%s] not match seq num latest [%s]", latestID, seqNumLatestID)
for i := 0; i < 3; i++ {
time.Sleep(512 * time.Millisecond)
time.Sleep(1 * time.Second)
downloadedData, downloadErr := repo.downloadCloudObject("refs/latest")
if nil != downloadErr {
logging.LogWarnf("confirm [%d] downloaded cloud [refs/latest] failed: %s", i, downloadErr)
Expand Down

0 comments on commit b415ddf

Please sign in to comment.