mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-07 12:35:54 +00:00
fix(app): drop a redundant match guard on the sse config lookup
This commit is contained in:
@@ -234,7 +234,9 @@ impl SourceBackend for GcsNativeSourceBackend {
|
|||||||
url.query_pairs_mut().append_pair("maxResults", "1");
|
url.query_pairs_mut().append_pair("maxResults", "1");
|
||||||
let request = self.request(Method::GET, url, HeaderMap::new()).await?;
|
let request = self.request(Method::GET, url, HeaderMap::new()).await?;
|
||||||
let response = self.http.send(request, NO_ERROR_CODE_HEADER).await?;
|
let response = self.http.send(request, NO_ERROR_CODE_HEADER).await?;
|
||||||
read_text(response, MAX_JSON_BYTES).await.and_then(|body| parse_objects_list(&body))?;
|
read_text(response, MAX_JSON_BYTES)
|
||||||
|
.await
|
||||||
|
.and_then(|body| parse_objects_list(&body))?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ fn classify_bucket_default_sse_lookup(
|
|||||||
) -> S3Result<Option<(ServerSideEncryptionConfiguration, OffsetDateTime)>> {
|
) -> S3Result<Option<(ServerSideEncryptionConfiguration, OffsetDateTime)>> {
|
||||||
match lookup {
|
match lookup {
|
||||||
Ok(config) => Ok(Some(config)),
|
Ok(config) => Ok(Some(config)),
|
||||||
Err(err) if err == StorageError::ConfigNotFound => Ok(None),
|
Err(StorageError::ConfigNotFound) => Ok(None),
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
let api_error = ApiError::from(err);
|
let api_error = ApiError::from(err);
|
||||||
error!(
|
error!(
|
||||||
|
|||||||
Reference in New Issue
Block a user