mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-06 05:17:42 +00:00
add Error test, fix clippy
This commit is contained in:
@@ -3824,14 +3824,13 @@ impl ObjectIO for SetDisks {
|
||||
|
||||
let sc_parity_drives = {
|
||||
if let Some(sc) = GLOBAL_StorageClass.get() {
|
||||
let a = sc.get_parity_for_sc(
|
||||
sc.get_parity_for_sc(
|
||||
user_defined
|
||||
.get(xhttp::AMZ_STORAGE_CLASS)
|
||||
.cloned()
|
||||
.unwrap_or_default()
|
||||
.as_str(),
|
||||
);
|
||||
a
|
||||
)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
@@ -4806,14 +4805,13 @@ impl StorageAPI for SetDisks {
|
||||
|
||||
let sc_parity_drives = {
|
||||
if let Some(sc) = GLOBAL_StorageClass.get() {
|
||||
let a = sc.get_parity_for_sc(
|
||||
sc.get_parity_for_sc(
|
||||
user_defined
|
||||
.get(xhttp::AMZ_STORAGE_CLASS)
|
||||
.cloned()
|
||||
.unwrap_or_default()
|
||||
.as_str(),
|
||||
);
|
||||
a
|
||||
)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user