From b1f8bc74d9b8c44d257278a1b40042cdec745790 Mon Sep 17 00:00:00 2001 From: K Date: Thu, 11 Jul 2024 16:40:45 +0200 Subject: [PATCH] (fix) Turbo docs code example (#17) --- docs/src/docs/turbo/turbo-sdk/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/docs/turbo/turbo-sdk/index.md b/docs/src/docs/turbo/turbo-sdk/index.md index 504f77c..daf6b73 100644 --- a/docs/src/docs/turbo/turbo-sdk/index.md +++ b/docs/src/docs/turbo/turbo-sdk/index.md @@ -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 });