mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-03 18:55:39 +00:00
fix
This commit is contained in:
@@ -1452,7 +1452,7 @@ impl SetDisks {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// check endpoint是否一致
|
// check endpoint 是否一致
|
||||||
|
|
||||||
let _ = new_disk.set_disk_id(Some(fm.erasure.this)).await;
|
let _ = new_disk.set_disk_id(Some(fm.erasure.this)).await;
|
||||||
|
|
||||||
@@ -6019,11 +6019,7 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_join_errs() {
|
fn test_join_errs() {
|
||||||
// Test joining error messages
|
// Test joining error messages
|
||||||
let errs = vec![
|
let errs = vec![None, Some(Error::from_string("error1")), Some(Error::from_string("error2"))];
|
||||||
None,
|
|
||||||
Some(Error::from_string("error1")),
|
|
||||||
Some(Error::from_string("error2")),
|
|
||||||
];
|
|
||||||
let joined = join_errs(&errs);
|
let joined = join_errs(&errs);
|
||||||
assert!(joined.contains("<nil>"));
|
assert!(joined.contains("<nil>"));
|
||||||
assert!(joined.contains("error1"));
|
assert!(joined.contains("error1"));
|
||||||
|
|||||||
Reference in New Issue
Block a user