Add reload info
All checks were successful
Run Tests on Code / run-tests (push) Successful in 0s

This commit is contained in:
Neshura 2023-12-17 22:48:53 +01:00
parent c9998cad57
commit 2f428470e1
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -69,6 +69,7 @@ pub(crate) async fn run(data: Arc<RwLock<SharedData>>) {
Ok(data) => data,
Err(e) => panic!("{}", e),
};
write.messages.push(Message::Info("Config reloaded".to_string()));
}
}
@ -101,6 +102,8 @@ pub(crate) async fn run(data: Arc<RwLock<SharedData>>) {
continue
}
};
let mut write = data.write().await;
write.messages.push(Message::Info("Communities reloaded".to_string()));
last_reload = Utc::now();
}
}