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>
remotes/fyrchik/master
Angira Kekteeva 2021-06-23 17:55:17 +03:00
parent aef1e3fc7c
commit 11abaa7f68
1 changed files with 1 additions and 1 deletions

View File

@ -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) {