split structs from service/globals/mod.rs into separate units

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-03-24 19:21:05 -07:00 committed by June
parent f3bc87c4e6
commit f5da75e476
5 changed files with 184 additions and 163 deletions

View file

@ -205,10 +205,10 @@ roomid_spacehierarchy_cache: {roomid_spacehierarchy_cache}"
self.rooms.spaces.roomid_spacehierarchy_cache.lock().await.clear();
}
if amount > 6 {
self.globals.tls_name_override.write().unwrap().clear();
self.globals.resolver.overrides.write().unwrap().clear();
}
if amount > 7 {
self.globals.dns_resolver().clear_cache();
self.globals.resolver.resolver.clear_cache();
}
}
}