Skip to content

Commit

Permalink
fix:data transmission
Browse files Browse the repository at this point in the history
  • Loading branch information
oreki-white authored and ActivePeter committed Jul 15, 2024
1 parent 33c4c3c commit 1778957
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
16 changes: 10 additions & 6 deletions scripts/deploy_cluster/node_config.yaml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions src/general/m_appmeta_manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<AppMeta> {
self.app_metas.get(app).cloned()
}
pub async fn get_app_meta(&self, app: &str) -> Option<AppMeta> {
if let Some(res)=self.get_tmp_app_meta(app){
return Some(res);
}

// self.app_metas.get(app)
let meta = view()
.data_general()
Expand Down

0 comments on commit 1778957

Please sign in to comment.