Phase 9 R1: repo-ensure RPC + fleet-health fixes #107
@@ -1151,9 +1151,7 @@ impl RpcRouter {
|
|||||||
return Ok(HandlerOutcome::Error(ErrorCode::InvalidRequest))
|
return Ok(HandlerOutcome::Error(ErrorCode::InvalidRequest))
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if let Some(parent) = Some(root.as_path()) {
|
let _ = tokio::fs::create_dir_all(&root).await;
|
||||||
let _ = tokio::fs::create_dir_all(parent).await;
|
|
||||||
}
|
|
||||||
let reply =
|
let reply =
|
||||||
crate::cluster::repo_ensure::ensure_repo(&root, &req).await?;
|
crate::cluster::repo_ensure::ensure_repo(&root, &req).await?;
|
||||||
let json = serde_json::to_vec(&reply)
|
let json = serde_json::to_vec(&reply)
|
||||||
|
|||||||
Reference in New Issue
Block a user