refactor(runtime): guard endpoint erasure globals (#4055)

This commit is contained in:
Zhengchao An
2026-06-29 19:26:05 +08:00
committed by GitHub
parent 636476c3e5
commit 35077c033c
3 changed files with 41 additions and 2 deletions
+1 -1
View File
@@ -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();