fix deadlock

This commit is contained in:
Aiden McClelland
2021-10-08 17:11:16 -06:00
committed by Aiden McClelland
parent ee8eca7038
commit b70d176d9e

View File

@@ -163,7 +163,6 @@ async fn maybe_do_update(ctx: RpcContext) -> Result<Option<Arc<Revision>>, Error
if &latest_version <= &current_version {
return Ok(None);
}
let mut db = ctx.db.handle();
let mut tx = db.begin().await?;
let mut info = crate::db::DatabaseModel::new()
.server_info()