This is an automated email from the ASF dual-hosted git repository. xuanwo pushed a commit to branch fix-cap in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 4009a99eaab24625e278828e389a5bba41204f98 Author: Xuanwo <[email protected]> AuthorDate: Tue Aug 29 15:15:07 2023 +0800 FIx typo Signed-off-by: Xuanwo <[email protected]> --- core/src/types/operator/operator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/types/operator/operator.rs b/core/src/types/operator/operator.rs index bb40ba7ef..ab97a2df2 100644 --- a/core/src/types/operator/operator.rs +++ b/core/src/types/operator/operator.rs @@ -369,7 +369,7 @@ impl Operator { let br = args.range(); let (rp, mut s) = inner.read(&path, args).await?; - let length = rp.into_metadata().contentngth() as usize; + let length = rp.into_metadata().content_length() as usize; let mut buffer = Vec::with_capacity(length); let dst = buffer.spare_capacity_mut();
