add map accessor to Database; move cork interface

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-10-29 00:08:41 +00:00 committed by strawberry
parent 567a4cb441
commit 354dc9e703
3 changed files with 26 additions and 18 deletions

View file

@ -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;
}