feat(restriction): Avoid re-creating a config reload notifier each time

This commit is contained in:
Σrebe - Romain GERARD 2024-05-01 15:00:35 +02:00
parent 862d1dc9e2
commit 421a5a230c
No known key found for this signature in database
GPG key ID: 7A42B4B97E0332F4
2 changed files with 6 additions and 2 deletions

View file

@ -94,7 +94,7 @@ impl RestrictionsRulesReloader {
&self.restrictions
}
pub fn wait_for_reload(&self) -> Notified {
pub fn reload_notifier(&self) -> Notified {
match &self.state {
Static(st) => st.notified(),
Config(st) => st.should_reload_config.notified(),