diff --git a/client/container.go b/client/container.go index cba52a0..98b183f 100644 --- a/client/container.go +++ b/client/container.go @@ -20,8 +20,6 @@ import ( // ContainerPutPrm groups parameters of PutContainer operation. type ContainerPutPrm struct { - prmSession - cnrSet bool cnr container.Container } @@ -101,8 +99,7 @@ func (c *Client) PutContainer(ctx context.Context, prm ContainerPutPrm) (*Contai // form meta header var meta v2session.RequestMetaHeader - - prm.prmSession.writeToMetaHeader(&meta) + meta.SetSessionToken(prm.cnr.SessionToken().ToV2()) // form request var req v2container.PutRequest diff --git a/pool/pool.go b/pool/pool.go index 3d213f7..d69fabc 100644 --- a/pool/pool.go +++ b/pool/pool.go @@ -764,10 +764,6 @@ func (p *pool) PutContainer(ctx context.Context, cnr *container.Container, opts cliPrm.SetContainer(*cnr) } - if cfg.stoken != nil { - cliPrm.SetSessionToken(*cfg.stoken) - } - res, err := cp.client.PutContainer(ctx, cliPrm) if p.checkSessionTokenErr(err, cp.address) && !cfg.isRetry {