basic reloading

This commit is contained in:
Robin Appelman 2025-10-30 18:56:02 +01:00
commit 78e716f949
9 changed files with 562 additions and 32 deletions

View file

@ -29,14 +29,14 @@ impl Config {
error,
path: path.to_owned(),
})?;
Ok(config
config
.validate(path)
.map_err(|error| ConfigError::Validation {
error,
path: path.to_owned(),
})?)
})
}
pub fn reload(&self) -> Result<Config, ConfigError> {
Self::load(&self.path)
}