diff options
Diffstat (limited to 'crate_db')
-rw-r--r-- | crate_db/Cargo.toml | 2 | ||||
-rw-r--r-- | crate_db/src/lib_crate_db.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crate_db/Cargo.toml b/crate_db/Cargo.toml index fc837b0..6ba570d 100644 --- a/crate_db/Cargo.toml +++ b/crate_db/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2018" name = "crate_db" -version = "0.4.5" +version = "0.4.6" authors = ["Kornel <kornel@geekhood.net>"] description = "Internal index of crates used by crates.rs" diff --git a/crate_db/src/lib_crate_db.rs b/crate_db/src/lib_crate_db.rs index 0c951be..426c643 100644 --- a/crate_db/src/lib_crate_db.rs +++ b/crate_db/src/lib_crate_db.rs @@ -95,7 +95,7 @@ impl CrateDb { let mut conn = self.exclusive_conn.lock(); let conn = conn.get_or_insert_with(|| self.connect().unwrap()); - let tx = conn.transaction()?; + let tx = conn.transaction_with_behavior(TransactionBehavior::Immediate)?; let res = cb(&tx).context(context)?; tx.commit().context(context)?; Ok(res) |