forked from TrueCloudLab/frostfs-api-go
[#236] Fix SDK minor version number
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
9480742d7b
commit
3550e128bb
2 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ import (
|
|||
// Version represents v2-compatible version.
|
||||
type Version refs.Version
|
||||
|
||||
const sdkMjr, sdkMnr = 2, 0
|
||||
const sdkMjr, sdkMnr = 2, 1
|
||||
|
||||
// NewVersionFromV2 wraps v2 Version message to Version.
|
||||
func NewVersionFromV2(v *refs.Version) *Version {
|
||||
|
@ -72,7 +72,7 @@ func IsSupportedVersion(v *Version) error {
|
|||
switch mjr := v.Major(); mjr {
|
||||
case 2:
|
||||
switch mnr := v.Minor(); mnr {
|
||||
case 0:
|
||||
case 0, 1:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ func TestIsSupportedVersion(t *testing.T) {
|
|||
}{
|
||||
{
|
||||
mjr: 2,
|
||||
maxMnr: 0,
|
||||
maxMnr: 1,
|
||||
},
|
||||
} {
|
||||
v.SetMajor(item.mjr)
|
||||
|
|
Loading…
Reference in a new issue