From 177895768f85c7c063cee89997dbae229f5ecf51 Mon Sep 17 00:00:00 2001 From: oreki_white Date: Tue, 9 Jul 2024 10:50:55 +0800 Subject: [PATCH] fix:data transmission --- scripts/deploy_cluster/node_config.yaml | 16 ++++++++++------ src/general/m_appmeta_manager/mod.rs | 8 ++++++++ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/scripts/deploy_cluster/node_config.yaml b/scripts/deploy_cluster/node_config.yaml index 4771474..7f54c57 100644 --- a/scripts/deploy_cluster/node_config.yaml +++ b/scripts/deploy_cluster/node_config.yaml @@ -1,7 +1,11 @@ nodes: - 2: - addr: 192.168.31.87:2500 - spec: [meta, master] - 3: - addr: 192.168.31.96:2500 - spec: [meta, worker] + 9: + addr: 192.168.31.9:2500 + spec: + - meta + - master + 10: + addr: 192.168.31.240:2500 + spec: + - meta + - worker diff --git a/src/general/m_appmeta_manager/mod.rs b/src/general/m_appmeta_manager/mod.rs index 90a001c..68eb25a 100644 --- a/src/general/m_appmeta_manager/mod.rs +++ b/src/general/m_appmeta_manager/mod.rs @@ -583,7 +583,15 @@ impl AppMetas { // pattern_2_app_fn: HashMap::new(), // } // } + // pub async fn set_tmp_appmeta(&self, ) + fn get_tmp_app_meta(&self, app: &str) -> Option { + self.app_metas.get(app).cloned() + } pub async fn get_app_meta(&self, app: &str) -> Option { + if let Some(res)=self.get_tmp_app_meta(app){ + return Some(res); + } + // self.app_metas.get(app) let meta = view() .data_general()