don't remove namespaces on daemon exit

This commit is contained in:
Robin Appelman 2025-11-01 15:58:25 +01:00
commit 3a8b684600
6 changed files with 52 additions and 56 deletions

View file

@ -40,6 +40,10 @@ impl Config {
pub fn reload(&self) -> Result<Config, ConfigError> {
Self::load(&self.path)
}
pub fn get_namespace<'a>(&'a self, name: &NamespaceName) -> Option<&'a NamespaceConfig> {
self.namespaces.iter().find(|namespace| &namespace.name == name)
}
}
#[derive(Deserialize, Debug)]