You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2025/08/12 02:31:54 UTC

(opendal) branch main updated: fix(bindings/nodejs): use value.prefetch instead of value.concurrent for prefetch option (#6502)

This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 542df6676 fix(bindings/nodejs): use value.prefetch instead of value.concurrent for prefetch option (#6502)
542df6676 is described below

commit 542df6676c2023283cc9aa7703d16b571b708d7f
Author: Kingsword <ki...@gmail.com>
AuthorDate: Tue Aug 12 10:31:48 2025 +0800

    fix(bindings/nodejs): use value.prefetch instead of value.concurrent for prefetch option (#6502)
---
 bindings/nodejs/src/options.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bindings/nodejs/src/options.rs b/bindings/nodejs/src/options.rs
index c59a7546f..58a5eb088 100644
--- a/bindings/nodejs/src/options.rs
+++ b/bindings/nodejs/src/options.rs
@@ -339,7 +339,7 @@ impl From<ReaderOptions> for opendal::options::ReaderOptions {
             concurrent: value.concurrent.unwrap_or_default() as usize,
             chunk: value.chunk.map(|chunk| chunk as usize),
             gap: value.gap.map(|gap| gap.get_u64().1 as usize),
-            prefetch: value.concurrent.unwrap_or_default() as usize,
+            prefetch: value.prefetch.unwrap_or_default() as usize,
             if_match: value.if_match,
             if_none_match: value.if_none_match,
             if_modified_since,