From 923f5c8e77f94802c24a771a348ea66e1224bf4b Mon Sep 17 00:00:00 2001 From: Frank Wang <1454884738@qq.com> Date: Tue, 10 Dec 2024 16:08:07 -0600 Subject: [PATCH] fix --- core/src/services/obs/backend.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/services/obs/backend.rs b/core/src/services/obs/backend.rs index a62ddfa89e8..28b33d37de4 100644 --- a/core/src/services/obs/backend.rs +++ b/core/src/services/obs/backend.rs @@ -15,6 +15,7 @@ // specific language governing permissions and limitations // under the License. +use std::collections::HashMap; use std::fmt::Debug; use std::fmt::Formatter; use std::sync::Arc; @@ -27,7 +28,7 @@ use reqsign::HuaweicloudObsConfig; use reqsign::HuaweicloudObsCredentialLoader; use reqsign::HuaweicloudObsSigner; -use super::core::ObsCore; +use super::core::{constants, ObsCore}; use super::delete::ObsDeleter; use super::error::parse_error; use super::lister::ObsLister; @@ -314,7 +315,7 @@ impl Access for ObsBackend { // The response is very similar to azblob. match status { StatusCode::OK => { - let mut meta = parse_into_metadata(path, headers); + let mut meta = parse_into_metadata(path, headers)?; let user_meta = headers .iter() .filter_map(|(name, _)| {