[#9999] controlSvc: Replace deprecated methods

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2024-09-18 12:22:38 +03:00
parent 65d649f984
commit 0e4ef0bf1f

View file

@ -91,7 +91,7 @@ func (s *Server) RemoveNode(_ context.Context, req *control.RemoveNodeRequest) (
if len(nodeInfo.PublicKey()) == 0 { if len(nodeInfo.PublicKey()) == 0 {
return nil, status.Error(codes.NotFound, "no such node") return nil, status.Error(codes.NotFound, "no such node")
} }
if nodeInfo.IsOffline() { if nodeInfo.Status().IsOffline() {
return nil, status.Error(codes.FailedPrecondition, "node is already offline") return nil, status.Error(codes.FailedPrecondition, "node is already offline")
} }