[#197] sdk: Rename getters of Version type

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-16 11:08:47 +03:00 committed by Alex Vanin
parent f886d75560
commit 2bcbd48972
7 changed files with 30 additions and 30 deletions

View file

@ -12,7 +12,7 @@ import (
)
func (c Client) CreateSession(ctx context.Context, expiration uint64, opts ...CallOption) (*token.SessionToken, error) {
switch c.remoteNode.Version.GetMajor() {
switch c.remoteNode.Version.Major() {
case 2:
return c.createSessionV2(ctx, expiration, opts...)
default: