Revert "Add sql transactions"
This caused the error "locked database".
This reverts commit 4489b37a3f.
This commit is contained in:
parent
4489b37a3f
commit
9ed576b552
4 changed files with 477 additions and 625 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue