refactor: switch to using downloadSmallObject
This commit is contained in:
parent
91fb8546e9
commit
e1f040f0b7
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue