add map accessor to Database; move cork interface
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
567a4cb441
commit
354dc9e703
3 changed files with 26 additions and 18 deletions
|
@ -838,7 +838,7 @@ pub(super) async fn database_stats(
|
|||
let map_name = map.as_ref().map_or(EMPTY, String::as_str);
|
||||
|
||||
let mut out = String::new();
|
||||
for (name, map) in self.services.db.iter_maps() {
|
||||
for (name, map) in self.services.db.iter() {
|
||||
if !map_name.is_empty() && *map_name != *name {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue