diff --git a/sync_manual.go b/sync_manual.go index af79899..3dede07 100644 --- a/sync_manual.go +++ b/sync_manual.go @@ -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,