refactor(cluster): make apply_config_dir async

Mechanical conversion ahead of Stage 4A graph create (which calls the async
Omnigraph::init from inside apply): the fn signature, the CLI dispatch arm,
and every test caller (#[test] -> #[tokio::test]). Zero behavior change; all
60 lib tests and 3 failpoint tests green before and after.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
aaltshuler 2026-06-10 04:43:38 +03:00
parent 26b26999fd
commit 6fbf09d5c9
3 changed files with 63 additions and 63 deletions

View file

@ -3558,7 +3558,7 @@ async fn main() -> Result<()> {
finish_cluster_plan(&output, json)?;
}
ClusterCommand::Apply { config, json } => {
let output = apply_config_dir(config);
let output = apply_config_dir(config).await;
finish_cluster_apply(&output, json)?;
}
ClusterCommand::Status { config, json } => {