1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

Unmarshall head updates with sync pool

This commit is contained in:
mcrakhman 2024-08-08 22:29:10 +02:00
parent b7f35484b2
commit c271269722
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
3 changed files with 26 additions and 1 deletions

View file

@ -52,6 +52,7 @@ func (s *syncHandler) HandleHeadUpdate(ctx context.Context, statusUpdater syncst
if err != nil {
return nil, err
}
objectmessages.FreeHeadUpdate(update)
if treeSyncMsg.GetContent().GetHeadUpdate() == nil {
return nil, ErrUnexpectedMessageType
}