Skip to content

Commit

Permalink
iam:fix stats client own_paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljl committed Jun 26, 2024
1 parent 2cf187d commit 4cd5208
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ impl IamStatsClient {
ctx,
)
.await?;
let mock_ctx = TardisContext {
own_paths: org_cate.own_paths,
..ctx_clone.clone()
};
let set = RbumSetServ::get_rbum(
&org_cate.rel_rbum_set_id,
&RbumSetFilterReq {
Expand Down Expand Up @@ -84,8 +88,8 @@ impl IamStatsClient {
Box::pin(async move {
let task_handle = tokio::spawn(async move {
let funs = iam_constants::get_tardis_inst();
let _ = Self::org_fact_record_load(org_cate_id.clone(), account_ids, &funs, &ctx_clone).await;
let _ = IamKvClient::async_add_or_modify_key_name(funs.conf::<IamConfig>().spi.kv_orgs_prefix.clone(), org_cate_id, org_cate.name, &funs, &ctx_clone).await;
let _ = Self::org_fact_record_load(org_cate_id.clone(), account_ids, &funs, &mock_ctx).await;
let _ = IamKvClient::async_add_or_modify_key_name(funs.conf::<IamConfig>().spi.kv_orgs_prefix.clone(), org_cate_id, org_cate.name, &funs, &mock_ctx).await;
});
task_handle.await.unwrap();
Ok(())
Expand Down

0 comments on commit 4cd5208

Please sign in to comment.