[OHOS] feat: improve status manager (#2343)

* fix: improve status manager
This commit is contained in:
韩嘉乐
2026-06-11 17:27:10 +08:00
committed by GitHub
parent c0f42ebe8c
commit e7709f1cb5
6 changed files with 402 additions and 135 deletions
@@ -118,11 +118,7 @@ pub(crate) fn set_tun_fd(
})
}
pub(crate) fn get_runtime_snapshot() -> RuntimeAggregateState {
get_runtime_snapshot_inner()
}
pub(crate) fn get_runtime_snapshot_inner() -> RuntimeAggregateState {
pub(crate) fn collect_runtime_state() -> RuntimeAggregateState {
let infos = match ASYNC_RUNTIME.block_on(INSTANCE_MANAGER.collect_network_infos()) {
Ok(infos) => infos,
Err(err) => {