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

Fix streampool tests and marshal append

This commit is contained in:
mcrakhman 2024-08-14 14:53:32 +02:00
parent 2a3886a508
commit 3393ccf3f4
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
7 changed files with 60 additions and 12 deletions

View file

@ -72,6 +72,7 @@ func (t treeRemoteGetter) getTree(ctx context.Context) (treeStorage treestorage.
if err == nil || !errors.Is(err, treestorage.ErrUnknownTreeId) {
return
}
storageErr := err
status, err := t.deps.SpaceStorage.TreeDeletedStatus(t.treeId)
if err != nil {
@ -84,6 +85,9 @@ func (t treeRemoteGetter) getTree(ctx context.Context) (treeStorage treestorage.
collector, peerId, err := t.treeRequestLoop(ctx)
if err != nil {
if errors.Is(err, peer.ErrPeerIdNotFoundInContext) {
err = storageErr
}
return
}