forked from TrueCloudLab/frostfs-node
[#1382] controlSvc: Replace deprecated methods
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
1e7f9909da
commit
e5c8f7ff9f
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 {
|
||||
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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue