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
|
@ -25,7 +25,7 @@ func (c Client) GetSelfBalance(ctx context.Context, opts ...CallOption) (*accoun
|
|||
|
||||
func (c Client) GetBalance(ctx context.Context, owner *owner.ID, opts ...CallOption) (*accounting.Decimal, error) {
|
||||
// check remote node version
|
||||
switch c.remoteNode.Version.GetMajor() {
|
||||
switch c.remoteNode.Version.Major() {
|
||||
case 2:
|
||||
return c.getBalanceV2(ctx, owner, opts...)
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue