Skip to content

Commit

Permalink
(fix) Turbo docs code example (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
kay-is authored Jul 11, 2024
1 parent e9a79e7 commit b1f8bc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/docs/turbo/turbo-sdk/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ if (balance < fileSizeCost) {

// upload the file
try {
const { id, owner, dataCaches, fastFinalityIndexes } = await turbo.uploadFile(() => {
fileStreamFactory => () => fs.createReadStream(filePath),
fileSizeFactory => () => fileSize,
const { id, owner, dataCaches, fastFinalityIndexes } = await turbo.uploadFile({
fileStreamFactory: () => fs.createReadStream(filePath),
fileSizeFactory: () => fileSize,
});
// upload complete!
console.log('Successfully upload data item!', { id, owner, dataCaches, fastFinalityIndexes });
Expand Down

0 comments on commit b1f8bc7

Please sign in to comment.