forked from TrueCloudLab/frostfs-sdk-go
Change order of CallOptions in return of pool.conn
Moved WithSession with session token got from pool.Connection to the top of returned slice because it overlaps WithSession in 'option' parameter Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
aef1e3fc7c
commit
11abaa7f68
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ func (p *pool) conn(option []client.CallOption) (client.Client, []client.CallOpt
|
|||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
return conn, append(option, client.WithSession(token)), nil
|
||||
return conn, append([]client.CallOption{client.WithSession(token)}, option...), nil
|
||||
}
|
||||
|
||||
func (p *pool) PutObject(ctx context.Context, params *client.PutObjectParams, option ...client.CallOption) (*object.ID, error) {
|
||||
|
|
Loading…
Reference in a new issue