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

Change order of CallOptions in return of pool.conn
This commit is contained in:
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

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