Skip to content

Commit

Permalink
return real value instead of fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
sesi200 committed Jan 14, 2025
1 parent 574b04e commit 516c3cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/pool/Main.mo
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ shared (creator) actor class Self(opt_params : ?Types.InitParams) = this {
};
};
};
let mode = Option.get(args.mode, default_mode);
switch (args) {
case (?args) {
let mode = Option.get(args.mode, default_mode);
let wasm = if (Option.get(args.bypass_wasm_transform, false)) {
args.wasm_module
} else {
Expand All @@ -259,7 +259,7 @@ shared (creator) actor class Self(opt_params : ?Types.InitParams) = this {
switch (pool.refresh(info, false)) {
case (?newInfo) {
updateTimer<system>(newInfo);
(newInfo, default_mode);
(newInfo, mode);
};
case null { throw Error.reject "pool.refresh: Cannot find canister" };
};
Expand Down

0 comments on commit 516c3cf

Please sign in to comment.