mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-13 16:46:55 +00:00
refactor(runtime): guard endpoint erasure globals (#4055)
This commit is contained in:
@@ -265,7 +265,7 @@ impl BucketMetadataSys {
|
||||
async fn init_internal(&self, buckets: Vec<String>) -> Result<()> {
|
||||
let count = runtime_sources::endpoint_erasure_set_count()
|
||||
.map(|count| count * 10)
|
||||
.ok_or_else(|| Error::other("GLOBAL_Endpoints not init"))?;
|
||||
.ok_or_else(|| Error::other("endpoint pools not initialized"))?;
|
||||
|
||||
let mut failed_buckets: HashSet<String> = HashSet::new();
|
||||
let mut buckets = buckets.as_slice();
|
||||
|
||||
Reference in New Issue
Block a user