You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by wy...@apache.org on 2026/10/23 00:40:12 UTC

(maka) 16/18: style(host): format failed-startup retirement handling

This is an automated email from the ASF dual-hosted git repository.

M4n5ter pushed a commit to branch rust-preview
in repository https://gitbox.apache.org/repos/asf/maka.git

commit 5874bd95e1978e0af8a61a9e60bde60f1f4143df
Author: M4n5ter <m4...@gmail.com>
AuthorDate: Fri Oct 23 08:19:56 2026 +0800

    style(host): format failed-startup retirement handling
---
 platform/host-js/tests/application_services/host_logs.rs | 5 ++++-
 platform/host-runtime/src/application/host/lifecycle.rs  | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/platform/host-js/tests/application_services/host_logs.rs b/platform/host-js/tests/application_services/host_logs.rs
index aa7f2b704f..105b1723a2 100644
--- a/platform/host-js/tests/application_services/host_logs.rs
+++ b/platform/host-js/tests/application_services/host_logs.rs
@@ -418,7 +418,10 @@ async fn failed_startup_retirement_waits_for_cleanup_without_blocking_session_ad
         let store = Arc::try_unwrap(store)
             .unwrap_or_else(|_| panic!("Host cleanup retained the original EventLog"));
         store.close().await.unwrap();
-        assert_eq!(RootOwner::open(&root, &namespaces).unwrap().root_id(), root_id);
+        assert_eq!(
+            RootOwner::open(&root, &namespaces).unwrap().root_id(),
+            root_id
+        );
     })
     .await
     .unwrap();
diff --git a/platform/host-runtime/src/application/host/lifecycle.rs b/platform/host-runtime/src/application/host/lifecycle.rs
index 823f540425..521c20c360 100644
--- a/platform/host-runtime/src/application/host/lifecycle.rs
+++ b/platform/host-runtime/src/application/host/lifecycle.rs
@@ -62,7 +62,10 @@ impl Host {
                         && !snapshot.initialization_failures.is_empty()
                         && !snapshot.closing
                         && snapshot.cleanup_error.is_none()
-                        && snapshot.instances.iter().all(|instance| instance.calls == 0)
+                        && snapshot
+                            .instances
+                            .iter()
+                            .all(|instance| instance.calls == 0)
                         && (snapshot.starting
                             || snapshot.instances.iter().any(|instance| {
                                 instance.phase == Phase::Retiring


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org