use rust_embed for console static files

This commit is contained in:
weisd
2025-02-25 11:08:26 +08:00
parent f9c7d6e26f
commit 7f89b2a0ea
5 changed files with 94 additions and 58 deletions
+1 -1
View File
@@ -504,7 +504,7 @@ impl EndpointServerPools {
self.0
.first()
.and_then(|v| v.endpoints.as_ref().first())
.map_or(false, |v| v.is_local)
.is_some_and(|v| v.is_local)
}
/// returns a sorted list of nodes in this cluster
+1 -1
View File
@@ -140,7 +140,7 @@ pub fn get_format_erasure_in_quorum(formats: &[Option<FormatV3>]) -> Result<Form
let format = formats
.iter()
.find(|f| f.as_ref().map_or(false, |v| v.drives().eq(max_drives)))
.find(|f| f.as_ref().is_some_and(|v| v.drives().eq(max_drives)))
.ok_or(Error::new(ErasureError::ErasureReadQuorum))?;
let mut format = format.as_ref().unwrap().clone();