Wire it up

This commit is contained in:
Andras Schmelczer 2026-09-19 17:06:39 +01:00
commit 8a85a68dbb

View file

@ -20,7 +20,7 @@ pub struct AppState {
impl AppState {
pub async fn try_new(config: Config) -> Result<Self> {
let broadcasts = Broadcasts::new(&config.server);
let database = Database::try_new(&config.database, &broadcasts).await?;
let database = Database::try_new(&config.database).await?;
let cursors: Cursors = Cursors::new(&config.database, &broadcasts);
Cursors::start_background_task(cursors.clone());