1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-11 02:13:41 +09:00

GO-3920 Revive objectsync

This commit is contained in:
mcrakhman 2024-08-24 15:22:58 +02:00
parent d6314a24be
commit 79b18897de
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B

View file

@ -27,7 +27,11 @@ func (r *rpcHandler) AclGetRecords(ctx context.Context, request *spacesyncproto.
}
func (r *rpcHandler) ObjectSync(ctx context.Context, req *spacesyncproto.ObjectSyncMessage) (resp *spacesyncproto.ObjectSyncMessage, err error) {
return nil, fmt.Errorf("nt implemented")
sp, err := r.s.Get(ctx, req.SpaceId)
if err != nil {
return
}
return sp.HandleDeprecatedObjectSyncRequest(ctx, req)
}
func (r *rpcHandler) ObjectSyncRequestStream(req *spacesyncproto.ObjectSyncMessage, stream spacesyncproto.DRPCSpaceSync_ObjectSyncRequestStreamStream) (err error) {