diff --git a/Cargo.lock b/Cargo.lock index 117fa141cb..ee255b98c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5041,7 +5041,6 @@ dependencies = [ "canister_tracing_macros", "constants", "cycles_dispenser_canister", - "fire_and_forget_handler", "futures", "http_request", "human_readable", diff --git a/backend/canisters/notifications_index/impl/Cargo.toml b/backend/canisters/notifications_index/impl/Cargo.toml index d237242aea..e2f33fb1be 100644 --- a/backend/canisters/notifications_index/impl/Cargo.toml +++ b/backend/canisters/notifications_index/impl/Cargo.toml @@ -17,7 +17,6 @@ canister_state_macros = { path = "../../../libraries/canister_state_macros" } canister_tracing_macros = { path = "../../../libraries/canister_tracing_macros" } constants = { path = "../../../libraries/constants" } cycles_dispenser_canister = { path = "../../cycles_dispenser/api" } -fire_and_forget_handler = { path = "../../../libraries/fire_and_forget_handler" } futures = { workspace = true } http_request = { path = "../../../libraries/http_request" } human_readable = { path = "../../../libraries/human_readable" } diff --git a/backend/canisters/notifications_index/impl/src/lib.rs b/backend/canisters/notifications_index/impl/src/lib.rs index ced9400ba7..8c0a00ebdb 100644 --- a/backend/canisters/notifications_index/impl/src/lib.rs +++ b/backend/canisters/notifications_index/impl/src/lib.rs @@ -2,7 +2,6 @@ use crate::model::notifications_canister::NotificationsCanister; use crate::model::subscriptions::Subscriptions; use candid::Principal; use canister_state_macros::canister_state; -use fire_and_forget_handler::FireAndForgetHandler; use notifications_index_canister::{NotificationsIndexEvent, SubscriptionAdded, SubscriptionRemoved}; use principal_to_user_id_map::PrincipalToUserIdMap; use serde::{Deserialize, Serialize}; @@ -132,8 +131,6 @@ struct Data { pub notifications_canister_wasm_for_upgrades: CanisterWasm, pub canisters_requiring_upgrade: CanistersRequiringUpgrade, pub notifications_index_event_sync_queue: CanisterEventSyncQueue, - #[serde(default)] - pub fire_and_forget_handler: FireAndForgetHandler, pub rng_seed: [u8; 32], pub test_mode: bool, } @@ -161,7 +158,6 @@ impl Data { notifications_canister_wasm_for_upgrades: notifications_canister_wasm, canisters_requiring_upgrade: CanistersRequiringUpgrade::default(), notifications_index_event_sync_queue: CanisterEventSyncQueue::default(), - fire_and_forget_handler: FireAndForgetHandler::default(), rng_seed: [0; 32], test_mode, } diff --git a/backend/canisters/notifications_index/impl/src/updates/add_notifications_canister.rs b/backend/canisters/notifications_index/impl/src/updates/add_notifications_canister.rs index 57143ef3fa..c9889812cb 100644 --- a/backend/canisters/notifications_index/impl/src/updates/add_notifications_canister.rs +++ b/backend/canisters/notifications_index/impl/src/updates/add_notifications_canister.rs @@ -69,12 +69,6 @@ fn commit(canister_id: CanisterId, wasm_version: BuildVersion, state: &mut Runti ); } - state.data.fire_and_forget_handler.send_candid( - state.data.cycles_dispenser_canister_id, - "add_canister", - cycles_dispenser_canister::add_canister::Args { canister_id }, - ); - Success } else { AlreadyAdded