refactor: switch to using downloadSmallObject

This commit is contained in:
Derrick Hammer 2023-08-10 03:14:54 -04:00
parent 91fb8546e9
commit e1f040f0b7
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import { import {
addContextToErr, addContextToErr,
downloadObject, downloadSmallObject,
Err, Err,
maybeInitDefaultPortals, maybeInitDefaultPortals,
setActivePortalMasterKey, setActivePortalMasterKey,
@ -100,7 +100,7 @@ export async function loadKernel() {
async function downloadKernel( async function downloadKernel(
kernelCid: string, kernelCid: string,
): Promise<[kernelCode: ReadableStream, err: Err]> { ): Promise<[kernelCode: ReadableStream, err: Err]> {
const [code, err] = await downloadObject(kernelCid); const [code, err] = await downloadSmallObject(kernelCid);
if (err != null) { if (err != null) {
return [null as any, err]; return [null as any, err];