We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71d4fff commit af1fd37Copy full SHA for af1fd37
packages/hub/src/utils/uploadShards.ts
@@ -119,9 +119,11 @@ export async function* uploadShards(
119
for (const chunk of output.chunks) {
120
writeHashToArray(chunk.hash, xorbInfoSection, xorbViewOffset);
121
xorbViewOffset += HASH_LENGTH;
122
+ // start offset
123
xorbView.setUint32(xorbViewOffset, chunkBytes, true);
124
xorbViewOffset += 4;
- xorbView.setUint32(xorbViewOffset, chunkBytes + chunk.length, true);
125
+ // chunk length
126
+ xorbView.setUint32(xorbViewOffset, chunk.length, true);
127
128
xorbView.setBigUint64(xorbViewOffset, 0n, true); // reserved
129
xorbViewOffset += 8;
0 commit comments