[#180] sdk/client: Make defaultOptions func a Client method
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
ad0b01e892
commit
805ad54f41
6 changed files with 17 additions and 17 deletions
|
@ -22,7 +22,7 @@ func (c Client) CreateSession(ctx context.Context, expiration uint64, opts ...Ca
|
|||
|
||||
func (c Client) createSessionV2(ctx context.Context, expiration uint64, opts ...CallOption) (*token.SessionToken, error) {
|
||||
// apply all available options
|
||||
callOptions := defaultCallOptions()
|
||||
callOptions := c.defaultCallOptions()
|
||||
for i := range opts {
|
||||
opts[i].apply(&callOptions)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue