forked from TrueCloudLab/frostfs-node
[#253] object/put: Fix loss of session token
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
8e661d5c37
commit
9e27263df3
2 changed files with 4 additions and 3 deletions
|
@ -78,6 +78,7 @@ func (t *remoteTarget) Close() (*transformer.AccessIdentifiers, error) {
|
|||
),
|
||||
client.WithTTL(1), // FIXME: use constant
|
||||
client.WithBearer(t.bearer),
|
||||
client.WithSession(t.token),
|
||||
)
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "(%T) could not put object to %s", t, addr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue