forked from TrueCloudLab/frostfs-node
[#660] services/netmap: Don't call IsSupportedVersion in LocalNodeInfo
Clients can have version later than the server. The server should not deny these clients. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
d610346a7b
commit
8192933313
1 changed files with 0 additions and 3 deletions
|
@ -47,9 +47,6 @@ func (s *executorSvc) LocalNodeInfo(
|
||||||
_ context.Context,
|
_ context.Context,
|
||||||
req *netmap.LocalNodeInfoRequest) (*netmap.LocalNodeInfoResponse, error) {
|
req *netmap.LocalNodeInfoRequest) (*netmap.LocalNodeInfoResponse, error) {
|
||||||
ver := pkg.NewVersionFromV2(req.GetMetaHeader().GetVersion())
|
ver := pkg.NewVersionFromV2(req.GetMetaHeader().GetVersion())
|
||||||
if err := pkg.IsSupportedVersion(ver); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
ni, err := s.state.LocalNodeInfo()
|
ni, err := s.state.LocalNodeInfo()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue