Skip to content

Commit

Permalink
remove error for recharging subnet orchestrator while upgrading indiv…
Browse files Browse the repository at this point in the history
…idual canisters
  • Loading branch information
ravi-sawlani-yral committed Oct 16, 2024
1 parent 9ebef91 commit 9d29c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/canister/user_index/src/util/canister_management.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ pub async fn recharge_canister_if_below_threshold(canister_id: &Principal) -> Re
u128::try_from(individual_canister_status.cycles.0).map_err(|e| e.to_string())?;
if individual_canister_current_balance < threshold_balance {
let recharge_amount = recharge_amount - individual_canister_current_balance;
check_and_request_cycles_from_platform_orchestrator().await?;
let _ = check_and_request_cycles_from_platform_orchestrator().await;
recharge_canister(canister_id, recharge_amount).await?;
}

Expand Down

0 comments on commit 9d29c32

Please sign in to comment.