Wire it up
This commit is contained in:
parent
69a1e91d4b
commit
8a85a68dbb
1 changed files with 336 additions and 55 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in a new issue