mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 02:09:06 +00:00
fix(ohrs): update collect_network_infos to use synchronous method (#1444)
This commit is contained in:
@@ -92,7 +92,7 @@ pub fn stop_network_instance(inst_names: Vec<String>) {
|
|||||||
#[napi]
|
#[napi]
|
||||||
pub fn collect_network_infos() -> Vec<KeyValuePair> {
|
pub fn collect_network_infos() -> Vec<KeyValuePair> {
|
||||||
let mut result = Vec::new();
|
let mut result = Vec::new();
|
||||||
match INSTANCE_MANAGER.collect_network_infos() {
|
match INSTANCE_MANAGER.collect_network_infos_sync() {
|
||||||
Ok(map) => {
|
Ok(map) => {
|
||||||
for (uuid, info) in map.iter() {
|
for (uuid, info) in map.iter() {
|
||||||
// convert value to json string
|
// convert value to json string
|
||||||
|
|||||||
Reference in New Issue
Block a user