forked from TrueCloudLab/frostfs-sdk-go
[#133] client: Don't accept session token params in PutContainer
PutContainer method takes `container.Container` structure as an argument. This structure already contains session token field, so there is no need in `prmSession` because it duplicates session token definition. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
6a7ba33b59
commit
2a72f180dc
2 changed files with 1 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue