chore(release): v0.2.27 — auto-spawn local CMF server on model registration

This commit is contained in:
infosave2007
2026-07-21 23:15:33 +03:00
parent f6ee045989
commit 66ee32b233
5 changed files with 27 additions and 3 deletions
+8
View File
@@ -145,6 +145,14 @@ impl AppState {
let live = Live::build(new_cfg.clone(), &self.secrets, self.router_status.clone())?;
new_cfg.save(&self.config_path)?;
self.live.store(Arc::new(live));
let cmf_rt = self.cmf.clone();
let cmf_cfg = new_cfg.cmf.clone();
tokio::spawn(async move {
cmf_rt.stop().await;
crate::cmf_runtime::manage(cmf_rt, cmf_cfg).await;
});
Ok(())
}