From 35da6f793d8e787bb0e32bb1806c327f7b8f4f4b Mon Sep 17 00:00:00 2001 From: Frank Wang <1454884738@qq.com> Date: Tue, 10 Dec 2024 16:02:47 -0600 Subject: [PATCH] chore: small fix --- core/src/services/obs/backend.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/services/obs/backend.rs b/core/src/services/obs/backend.rs index a62ddfa89e84..a14bb6044887 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; @@ -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, _)| {