Clean up Rust by renaming functions, extracting logic, and auto into-ing errors
This commit is contained in:
parent
90e3cc9124
commit
419c29aa9d
1 changed files with 415 additions and 298 deletions
|
|
@ -24,7 +24,7 @@ impl AppState {
|
|||
let database = Database::try_new(&config.database).await?;
|
||||
let cursors: Cursors = Cursors::new(&config.database, &broadcasts);
|
||||
|
||||
Cursors::start_background_task(cursors.clone());
|
||||
Cursors::start_cursor_expiration_task(cursors.clone());
|
||||
|
||||
Ok(Self {
|
||||
config,
|
||||
|
|
|
|||
Loading…
Reference in a new issue