Revert "Add sql transactions"

This caused the error "locked database".
This reverts commit 4489b37a3f.
This commit is contained in:
Tobias Reisinger 2024-05-02 19:35:11 +02:00
parent 4489b37a3f
commit 9ed576b552
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 477 additions and 625 deletions

View file

@ -86,10 +86,9 @@ impl Handler<Reload> for AppState {
fn handle(&mut self, _msg: Reload, _ctx: &mut Self::Context) -> Self::Result {
log::debug!("Reloading controller");
let mut tx = block_on(self.pool.begin())?;
let mut pool_conn = block_on(self.pool.acquire())?;
self.this.reload(&mut tx)?;
block_on(tx.commit())?;
self.this.reload(&mut pool_conn)?;
self.notify_controller_change();