mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-13 16:46:55 +00:00
use rust_embed for console static files
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user