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:
parent
533806893f
commit
3b3a0199bd
6 changed files with 54 additions and 12 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue