Skip to content

Commit

Permalink
feat: rename simple type to single
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Nov 27, 2024
1 parent 37ee938 commit 4fa0a34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/admin/src/handlers/upgrade.handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ const upgradeCode = async ({
actor,
...rest
}: Omit<UpgradeCodeParams, 'onProgress'>) => {
const upgradeType = (): 'simple' | 'chunked' => {
const upgradeType = (): 'chunked' | 'single' => {
const blob = new Blob([wasmModule]);
return blob.size > SIMPLE_INSTALL_MAX_WASM_SIZE ? 'chunked' : 'simple';
return blob.size > SIMPLE_INSTALL_MAX_WASM_SIZE ? 'chunked' : 'single';
};

const fn = upgradeType() === 'chunked' ? upgradeChunkedCode : upgradeSingleChunkCode;
Expand Down

0 comments on commit 4fa0a34

Please sign in to comment.