improvement: make better use of sqlite connections

This commit is contained in:
Timo Kösters
2021-08-02 10:13:34 +02:00
parent 2c4f966d60
commit bd63797213
31 changed files with 422 additions and 568 deletions

View File

@@ -43,7 +43,7 @@ pub async fn send_state_event_for_key_route(
)
.await?;
db.flush().await?;
db.flush()?;
Ok(send_state_event::Response { event_id }.into())
}
@@ -69,7 +69,7 @@ pub async fn send_state_event_for_empty_key_route(
)
.await?;
db.flush().await?;
db.flush()?;
Ok(send_state_event::Response { event_id }.into())
}