forked from TrueCloudLab/frostfs-api-go
[#197] sdk: Rename getters of Version type
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
f886d75560
commit
2bcbd48972
7 changed files with 30 additions and 30 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue