From 515e40a037c90ba3ae5fb1296892be4ca5e4832e Mon Sep 17 00:00:00 2001 From: congyi <15605187270@163.com> Date: Tue, 20 Feb 2024 21:10:11 +0800 Subject: [PATCH] minor --- src/object_store/src/object/opendal_engine/fs.rs | 3 +-- src/object_store/src/object/opendal_engine/webhdfs.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/object_store/src/object/opendal_engine/fs.rs b/src/object_store/src/object/opendal_engine/fs.rs index c1841363e198f..b0a1f917baa33 100644 --- a/src/object_store/src/object/opendal_engine/fs.rs +++ b/src/object_store/src/object/opendal_engine/fs.rs @@ -27,8 +27,7 @@ impl OpendalObjectStore { let mut builder = Fs::default(); builder.root(&root); - let atomic_write_dir = format!("{}{}", root, ATOMIC_WRITE_DIR); - builder.atomic_write_dir(&atomic_write_dir); + builder.atomic_write_dir(ATOMIC_WRITE_DIR); let op: Operator = Operator::new(builder)? .layer(RetryLayer::default()) diff --git a/src/object_store/src/object/opendal_engine/webhdfs.rs b/src/object_store/src/object/opendal_engine/webhdfs.rs index f591a91f8f16a..7116eac18582f 100644 --- a/src/object_store/src/object/opendal_engine/webhdfs.rs +++ b/src/object_store/src/object/opendal_engine/webhdfs.rs @@ -31,8 +31,7 @@ impl OpendalObjectStore { // NOTE: the root must be absolute path. builder.root(&root); - let atomic_write_dir = format!("{}{}", root, ATOMIC_WRITE_DIR); - builder.atomic_write_dir(&atomic_write_dir); + builder.atomic_write_dir(ATOMIC_WRITE_DIR); let op: Operator = Operator::new(builder)? .layer(LoggingLayer::default()) .layer(RetryLayer::default())