fix(ohrs): update collect_network_infos to use synchronous method (#1444)

This commit is contained in:
Mg Pig
2025-10-04 23:12:38 +08:00
committed by GitHub
parent 4d5330fa0a
commit a452c34390

View File

@@ -92,7 +92,7 @@ pub fn stop_network_instance(inst_names: Vec<String>) {
#[napi]
pub fn collect_network_infos() -> Vec<KeyValuePair> {
let mut result = Vec::new();
match INSTANCE_MANAGER.collect_network_infos() {
match INSTANCE_MANAGER.collect_network_infos_sync() {
Ok(map) => {
for (uuid, info) in map.iter() {
// convert value to json string