Fix unmarshallSendError bug
This commit is contained in:
parent
7394b4bd67
commit
fc9644e509
@ -110,7 +110,8 @@ func (s *objectSync) handleMessage(ctx context.Context, senderId string, msg *sp
|
|||||||
obj, err := s.objectGetter.GetObject(ctx, msg.ObjectId)
|
obj, err := s.objectGetter.GetObject(ctx, msg.ObjectId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.DebugCtx(ctx, "failed to get object")
|
log.DebugCtx(ctx, "failed to get object")
|
||||||
return s.unmarshallSendError(ctx, msg, err, msg.ObjectId, senderId)
|
// TODO: write tests for object sync https://linear.app/anytype/issue/GO-1299/write-tests-for-commonspaceobjectsync
|
||||||
|
return s.unmarshallSendError(ctx, msg, err, senderId, msg.ObjectId)
|
||||||
}
|
}
|
||||||
return obj.HandleMessage(ctx, senderId, msg)
|
return obj.HandleMessage(ctx, senderId, msg)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user