feat: 使用持久选择解决 Sync 冲突并支持重启恢复
This commit is contained in:
@@ -236,6 +236,7 @@ impl SyncClient {
|
||||
}
|
||||
identifier(&binding.remote_vault)?;
|
||||
let job = workspace.access(|ws| {
|
||||
ws.sync_resume_resolutions(&binding.id)?;
|
||||
ws.sync_capture(&binding.id)?;
|
||||
ws.sync_next(&binding.id)
|
||||
})?;
|
||||
@@ -272,6 +273,7 @@ impl SyncClient {
|
||||
}
|
||||
identifier(&binding.remote_vault)?;
|
||||
workspace.access(|ws| {
|
||||
ws.sync_resume_resolutions(&binding.id)?;
|
||||
while ws.sync_apply_pending(&binding.id)? {}
|
||||
Ok(())
|
||||
})?;
|
||||
|
||||
Reference in New Issue
Block a user