review: get_node_status -> get_node

This commit is contained in:
Vlad Lazar
2024-06-17 11:45:49 +01:00
parent 86d5f4ada9
commit d86ddf2b76
2 changed files with 2 additions and 2 deletions

View File

@@ -486,7 +486,7 @@ async fn handle_node_status(req: Request<Body>) -> Result<Response<Body>, ApiErr
let state = get_state(&req);
let node_id: NodeId = parse_request_param(&req, "node_id")?;
let node_status = state.service.get_node_status(node_id).await?;
let node_status = state.service.get_node(node_id).await?;
json_response(StatusCode::OK, node_status)
}

View File

@@ -4202,7 +4202,7 @@ impl Service {
Ok(nodes)
}
pub(crate) async fn get_node_status(&self, node_id: NodeId) -> Result<Node, ApiError> {
pub(crate) async fn get_node(&self, node_id: NodeId) -> Result<Node, ApiError> {
self.inner
.read()
.unwrap()