forked from TrueCloudLab/frostfs-node
[#1423] session: Upgrade SDK package
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
dda56f1319
commit
4c8ec20e32
41 changed files with 740 additions and 663 deletions
|
@ -96,14 +96,14 @@ func (c *Client) Get(cid []byte) (*container.Container, error) {
|
|||
}
|
||||
|
||||
if len(tokBytes) > 0 {
|
||||
tok := session.NewToken()
|
||||
var tok session.Container
|
||||
|
||||
err = tok.Unmarshal(tokBytes)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("could not unmarshal session token: %w", err)
|
||||
}
|
||||
|
||||
cnr.SetSessionToken(tok)
|
||||
cnr.SetSessionToken(&tok)
|
||||
}
|
||||
|
||||
// FIXME(@cthulhu-rider): #1387 temp solution, later table structure won't have a signature
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue