mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-10 18:10:54 +09:00
Update compatibility with old protocol - requests
This commit is contained in:
parent
611390987c
commit
cf4c19b37d
1 changed files with 6 additions and 2 deletions
|
@ -115,8 +115,12 @@ func (o *objectSync) HandleDeprecatedObjectSync(ctx context.Context, req *spaces
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
cnt.Changes = nil
|
||||
marshalled, err := proto.Marshal(unmarshalled)
|
||||
resp := &treechangeproto.TreeFullSyncResponse{
|
||||
Heads: cnt.Heads,
|
||||
SnapshotPath: cnt.SnapshotPath,
|
||||
}
|
||||
syncMsg := treechangeproto.WrapFullResponse(resp, unmarshalled.RootChange)
|
||||
marshalled, err := proto.Marshal(syncMsg)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue