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:
parent
2a3886a508
commit
3393ccf3f4
7 changed files with 60 additions and 12 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue