diff --git a/proto/anki/sync.proto b/proto/anki/sync.proto index 4bd2bcd17..4658ef480 100644 --- a/proto/anki/sync.proto +++ b/proto/anki/sync.proto @@ -11,14 +11,15 @@ import "anki/generic.proto"; service SyncService { rpc SyncMedia(SyncAuth) returns (generic.Empty); - rpc AbortSync(generic.Empty) returns (generic.Empty); rpc AbortMediaSync(generic.Empty) returns (generic.Empty); - rpc BeforeUpload(generic.Empty) returns (generic.Empty); + rpc SyncLogin(SyncLoginRequest) returns (SyncAuth); rpc SyncStatus(SyncAuth) returns (SyncStatusResponse); rpc SyncCollection(SyncAuth) returns (SyncCollectionResponse); rpc FullUpload(SyncAuth) returns (generic.Empty); rpc FullDownload(SyncAuth) returns (generic.Empty); + rpc AbortSync(generic.Empty) returns (generic.Empty); + rpc SyncServerMethod(SyncServerMethodRequest) returns (generic.Json); } diff --git a/rslib/src/backend/sync/mod.rs b/rslib/src/backend/sync/mod.rs index 8ed523846..a367dfa04 100644 --- a/rslib/src/backend/sync/mod.rs +++ b/rslib/src/backend/sync/mod.rs @@ -99,10 +99,6 @@ impl SyncService for Backend { Ok(().into()) } - fn before_upload(&self, _input: pb::generic::Empty) -> Result { - self.with_col(|col| col.before_upload().map(Into::into)) - } - fn sync_login(&self, input: pb::sync::SyncLoginRequest) -> Result { self.sync_login_inner(input) }