Fix full sync request condition

This commit is contained in:
mcrakhman 2023-04-20 11:46:19 +02:00
parent 6f42dc2f7a
commit 2894b8ef66
No known key found for this signature in database
GPG Key ID: DED12CFEF5B8396B

View File

@ -134,5 +134,5 @@ func (s *objectSync) sendError(ctx context.Context, root *treechangeproto.RawTre
}
func (s *objectSync) isEmptyFullSyncRequest(msg *treechangeproto.TreeSyncMessage) bool {
return len(msg.GetContent().GetFullSyncRequest().GetHeads()) == 0
return msg.GetContent().GetFullSyncRequest() != nil && len(msg.GetContent().GetFullSyncRequest().GetHeads()) == 0
}