Skip to content

Commit a99ab19

Browse files
committed
more logs
1 parent 9effb60 commit a99ab19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/hub/src/utils/XetBlob.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ export class XetBlob extends Blob {
304304
uncompressed_length: header.getUint8(5) | (header.getUint8(6) << 8) | (header.getUint8(7) << 16),
305305
};
306306

307+
console.log("chunk header", chunkHeader);
308+
307309
if (chunkHeader.version !== 0) {
308310
throw new Error(`Unsupported chunk version ${chunkHeader.version}`);
309311
}
@@ -391,6 +393,8 @@ export class XetBlob extends Blob {
391393
leftoverBytes = result.value.slice(chunkHeader.compressed_length);
392394
}
393395

396+
console.log("done", done, "total read", totalBytesRead);
397+
394398
// Release the reader
395399
await reader.cancel();
396400
}

0 commit comments

Comments
 (0)