Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Mar 6, 2024
1 parent e325a1d commit 8004263
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/pool/Main.mo
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ shared (creator) actor class Self(opt_params : ?Types.InitParams) = this {

func updateTimer<system>(info: Types.CanisterInfo) {
func job() : async () {
pool.removeTimer<system>(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);
Expand Down
2 changes: 1 addition & 1 deletion service/pool/Types.mo
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ module {
};
};

public func removeTimer<system>(cid: Principal) {
public func removeTimer(cid: Principal) {
timers.delete cid;
};

Expand Down

0 comments on commit 8004263

Please sign in to comment.