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

Update rpc err in pull space

This commit is contained in:
mcrakhman 2023-03-16 18:27:19 +01:00 committed by Mikhail Iudin
parent efc65a7843
commit 6d6fd1e849
No known key found for this signature in database
GPG key ID: FAAAA8BAABDFF1C0

View file

@ -17,6 +17,7 @@ import (
"github.com/anytypeio/any-sync/commonspace/syncstatus"
"github.com/anytypeio/any-sync/net/peer"
"github.com/anytypeio/any-sync/net/pool"
"github.com/anytypeio/any-sync/net/rpc/rpcerr"
"github.com/anytypeio/any-sync/nodeconf"
"sync/atomic"
)
@ -216,6 +217,7 @@ func (s *spaceService) getSpaceStorageFromRemote(ctx context.Context, id string)
cl := spacesyncproto.NewDRPCSpaceSyncClient(p)
res, err := cl.SpacePull(ctx, &spacesyncproto.SpacePullRequest{Id: id})
if err != nil {
err = rpcerr.Unwrap(err)
return
}