[#1389] storagegroup: Upgrade SDK package

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-05-13 12:25:13 +03:00 committed by LeL
parent 0f376a5d83
commit 5e50ddd7f5
7 changed files with 10 additions and 11 deletions

View file

@ -113,14 +113,14 @@ func (c *ClientCache) getSG(ctx context.Context, addr *addressSDK.Address, nm *n
continue
}
sg := storagegroup.New()
var sg storagegroup.StorageGroup
err = sg.Unmarshal(payload)
if err != nil {
return nil, fmt.Errorf("can't parse storage group payload: %w", err)
}
return sg, nil
return &sg, nil
}
var errNotFound apistatus.ObjectNotFound