client: Set the client var in the correct scope

This commit is contained in:
Łukasz Magiera 2021-03-31 19:38:02 +02:00
parent f2ab316fb1
commit dfe8a1c1e2

View File

@ -594,7 +594,7 @@ func (a *API) clientRetrieve(ctx context.Context, order api.RetrievalOrder, ref
return return
} }
store, err := a.RetrievalStoreMgr.NewStore() store, err = a.RetrievalStoreMgr.NewStore()
if err != nil { if err != nil {
finish(xerrors.Errorf("Error setting up new store: %w", err)) finish(xerrors.Errorf("Error setting up new store: %w", err))
return return