1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-11 10:18:08 +09:00

WIP synctree tests rewrite

This commit is contained in:
mcrakhman 2023-06-06 20:10:44 +02:00
parent 67d535362f
commit 3a2f9fe6f5
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
10 changed files with 432 additions and 121 deletions

View file

@ -52,6 +52,8 @@ func (s *syncTreeHandler) HandleRequest(ctx context.Context, senderId string, re
return
}
s.syncStatus.HeadsReceive(senderId, request.ObjectId, treechangeproto.GetHeads(unmarshalled))
s.objTree.Lock()
defer s.objTree.Unlock()
treeResp, err := s.syncProtocol.FullSyncRequest(ctx, senderId, fullSyncRequest)
if err != nil {
return