mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-11 10:18:08 +09:00
Add acl new protocol and tests
This commit is contained in:
parent
0884834ad2
commit
fdc190c70f
3 changed files with 53 additions and 5 deletions
|
@ -143,11 +143,8 @@ func (s *syncTreeHandler) handleMessage(ctx context.Context, msg *treechangeprot
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if protoVersion <= secureservice.ProtoVersion {
|
||||
return nil
|
||||
}
|
||||
cnt := content.GetFullSyncResponse()
|
||||
if slice.UnsortedEquals(cnt.Heads, s.objTree.Heads()) {
|
||||
if protoVersion <= secureservice.ProtoVersion || slice.UnsortedEquals(cnt.Heads, s.objTree.Heads()) {
|
||||
return nil
|
||||
}
|
||||
req, err := s.syncClient.CreateFullSyncRequest(s.objTree, cnt.Heads, cnt.SnapshotPath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue