[#131] client: Remove SetEACLPrm.SetSessionToken

From now session token for `SetEACL` operation should be written into
eACL table structure (similar to `PutContainer`).

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-02-16 23:11:49 +03:00 committed by LeL
parent a0cbc3d8be
commit 37f0cde78d
2 changed files with 1 additions and 8 deletions

View file

@ -549,8 +549,6 @@ func (c *Client) EACL(ctx context.Context, prm EACLPrm) (*EACLRes, error) {
// SetEACLPrm groups parameters of SetEACL operation.
type SetEACLPrm struct {
prmSession
tableSet bool
table eacl.Table
}
@ -613,8 +611,7 @@ func (c *Client) SetEACL(ctx context.Context, prm SetEACLPrm) (*SetEACLRes, erro
// form meta header
var meta v2session.RequestMetaHeader
prm.prmSession.writeToMetaHeader(&meta)
meta.SetSessionToken(prm.table.SessionToken().ToV2())
// form request
var req v2container.SetExtendedACLRequest

View file

@ -1207,10 +1207,6 @@ func (p *pool) SetEACL(ctx context.Context, table *eacl.Table, opts ...CallOptio
cliPrm.SetTable(*table)
}
if cfg.stoken != nil {
cliPrm.SetSessionToken(*cfg.stoken)
}
_, err = cp.client.SetEACL(ctx, cliPrm)
if p.checkSessionTokenErr(err, cp.address) && !cfg.isRetry {