From 80042632c03043734efb42c8ae4f08531255efb5 Mon Sep 17 00:00:00 2001 From: Yan Chen <48968912+chenyan-dfinity@users.noreply.github.com> Date: Tue, 5 Mar 2024 19:14:29 -0800 Subject: [PATCH] fix --- service/pool/Main.mo | 2 +- service/pool/Types.mo | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service/pool/Main.mo b/service/pool/Main.mo index 48ee9f1d..0a874d9f 100644 --- a/service/pool/Main.mo +++ b/service/pool/Main.mo @@ -215,7 +215,7 @@ shared (creator) actor class Self(opt_params : ?Types.InitParams) = this { func updateTimer(info: Types.CanisterInfo) { func job() : async () { - pool.removeTimer(info.id); + pool.removeTimer(info.id); // It is important that the timer job checks for the timestamp first. // This prevents late-runner jobs from deleting newly installed code. await removeCode(info); diff --git a/service/pool/Types.mo b/service/pool/Types.mo index c89770a1..b22e3049 100644 --- a/service/pool/Types.mo +++ b/service/pool/Types.mo @@ -151,7 +151,7 @@ module { }; }; - public func removeTimer(cid: Principal) { + public func removeTimer(cid: Principal) { timers.delete cid; };