[#9999] controlSvc: Replace deprecated methods
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
65d649f984
commit
0e4ef0bf1f
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue