From 55cbc123623b48a93863422f41aebcdabc49e1e1 Mon Sep 17 00:00:00 2001 From: Seth Vincent Date: Wed, 9 Aug 2023 15:40:56 -0700 Subject: [PATCH] chore: remove todo comments (#159) remove todo comments --- lib/blob-store/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/blob-store/index.js b/lib/blob-store/index.js index 1ceae79cb..258c1bbb4 100644 --- a/lib/blob-store/index.js +++ b/lib/blob-store/index.js @@ -70,7 +70,6 @@ export class BlobStore { * @param {string} driveId */ #getDrive(driveId) { - // TODO: Support 'wait' and 'timeout' opts (requires patch to Hyperdrive, or custom implementation of createReadStream) const drive = this.#hyperdrives.get(driveId) if (!drive) throw new Error('Drive not found ' + driveId.slice(0, 7)) return drive @@ -79,8 +78,8 @@ export class BlobStore { /** * @param {BlobId} blobId * @param {object} opts - * @param {false} [opts.wait=false] [NOT YET IMPLEMENTED] Set to `true` to wait for a blob to download, otherwise will throw if blob is not available locally - * @param {never} [opts.timeout] [NOT YET IMPLEMENTED] Optional timeout to wait for a blob to download + * @param {false} [opts.wait=false] Set to `true` to wait for a blob to download, otherwise will throw if blob is not available locally + * @param {never} [opts.timeout] Optional timeout to wait for a blob to download */ async get({ type, variant, name, driveId }, { wait = false, timeout } = {}) { const drive = this.#getDrive(driveId)