Don’t override context unnecessarily

This commit is contained in:
Tobie Morgan Hitchcock 2022-04-29 21:43:44 +01:00
parent 6202d0b6e9
commit 355f1aac7b

View file

@ -237,8 +237,6 @@ impl Executor {
None => {
// Create a transaction
let loc = self.begin().await;
// Enable context override
let mut ctx = Context::new(&ctx).freeze();
// Specify statement timeout
if let Some(timeout) = stm.timeout() {
let mut new = Context::new(&ctx);