From e1f040f0b7b1a472a927e0f99b191f428fa2c165 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 10 Aug 2023 03:14:54 -0400 Subject: [PATCH] refactor: switch to using downloadSmallObject --- src/kernel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel.ts b/src/kernel.ts index 753837b..5e3770e 100644 --- a/src/kernel.ts +++ b/src/kernel.ts @@ -1,6 +1,6 @@ import { addContextToErr, - downloadObject, + downloadSmallObject, Err, maybeInitDefaultPortals, setActivePortalMasterKey, @@ -100,7 +100,7 @@ export async function loadKernel() { async function downloadKernel( kernelCid: string, ): Promise<[kernelCode: ReadableStream, err: Err]> { - const [code, err] = await downloadObject(kernelCid); + const [code, err] = await downloadSmallObject(kernelCid); if (err != null) { return [null as any, err];