generated from methanium/template
(feat): some connection improvements
This commit is contained in:
parent
2058847d25
commit
d55b1326f8
4 changed files with 27 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ use tokio::sync::{RwLock, watch};
|
|||
pub struct AppState {
|
||||
categories: Arc<RwLock<Vec<Category>>>,
|
||||
incidents: IncidentStore,
|
||||
public_port: u16,
|
||||
updates: watch::Sender<String>,
|
||||
}
|
||||
|
||||
|
|
@ -70,6 +71,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
|||
let state = Arc::new(AppState {
|
||||
categories: Arc::clone(&categories),
|
||||
incidents,
|
||||
public_port: config.public_port,
|
||||
updates,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue