[#180] sdk/client: Make defaultOptions func a Client method

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-10-27 15:54:02 +03:00 committed by Alex Vanin
parent ad0b01e892
commit 805ad54f41
6 changed files with 17 additions and 17 deletions

View file

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