Merge pull request #22 from masterSplinter01/fix/session-token-overlap

Change order of CallOptions in return of pool.conn
remotes/fyrchik/master
Kirillov Denis 2021-06-24 10:23:35 +03:00 committed by GitHub
commit 0348eb331c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {