Skip to content

Commit

Permalink
feat(brain/tools) add start_cycles_check_timer in post_upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
kinwo committed Apr 25, 2024
1 parent 8dce2d5 commit 700e113
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/arcmindai_brain/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,8 @@ fn post_upgrade(
s.borrow_mut().battery_canister = battery_canister;
s.borrow_mut().battery_api_key = battery_api_key.clone();
});

start_cycles_check_timer(CYCLES_BALANCE_CHECK_MIN_INTERVAL_SECS);
}

// ---------------------- Candid declarations did file generator ----------------------
Expand Down
2 changes: 2 additions & 0 deletions src/arcmindai_tools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ fn post_upgrade(
s.borrow_mut().battery_canister = battery_canister;
s.borrow_mut().battery_api_key = battery_api_key.clone();
});

start_cycles_check_timer(CYCLES_BALANCE_CHECK_MIN_INTERVAL_SECS);
}

// ---------------------- Candid declarations did file generator ----------------------
Expand Down

0 comments on commit 700e113

Please sign in to comment.