1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-12 02:30:41 +09:00

Update object sync error handling logic

This commit is contained in:
mcrakhman 2023-04-19 20:42:47 +02:00 committed by Mikhail Iudin
parent 533806893f
commit 3b3a0199bd
No known key found for this signature in database
GPG key ID: FAAAA8BAABDFF1C0
6 changed files with 54 additions and 12 deletions

View file

@ -167,7 +167,7 @@ func (s *syncTreeHandler) handleFullSyncRequest(
defer func() {
if err != nil {
log.With(zap.Error(err)).DebugCtx(ctx, "full sync request finished with error")
s.syncClient.SendWithReply(ctx, senderId, treechangeproto.WrapError(treechangeproto.ErrorCodes_FullSyncRequestError, header), replyId)
s.syncClient.SendWithReply(ctx, senderId, treechangeproto.WrapError(treechangeproto.ErrFullSync, header), replyId)
return
} else if fullResponse != nil {
cnt := fullResponse.Content.GetFullSyncResponse()