perf(proxy): reuse group order names

This commit is contained in:
Tunglies
2026-08-19 15:49:03 +08:00
parent e15ddab542
commit fc5fdbfea6
2 changed files with 13 additions and 19 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ fn runtime_group_order(config: Option<&Mapping>) -> Vec<String> {
.filter_map(|group| group.get("name"))
.filter_map(|name| name.as_str())
.filter(|name| !name.is_empty() && *name != "GLOBAL")
.filter(|name| seen.insert((*name).to_owned()))
.filter(|name| seen.insert(*name))
.map(str::to_owned)
.collect()
}