Don’t override context unnecessarily
This commit is contained in:
parent
6202d0b6e9
commit
355f1aac7b
1 changed files with 0 additions and 2 deletions
|
@ -237,8 +237,6 @@ impl Executor {
|
||||||
None => {
|
None => {
|
||||||
// Create a transaction
|
// Create a transaction
|
||||||
let loc = self.begin().await;
|
let loc = self.begin().await;
|
||||||
// Enable context override
|
|
||||||
let mut ctx = Context::new(&ctx).freeze();
|
|
||||||
// Specify statement timeout
|
// Specify statement timeout
|
||||||
if let Some(timeout) = stm.timeout() {
|
if let Some(timeout) = stm.timeout() {
|
||||||
let mut new = Context::new(&ctx);
|
let mut new = Context::new(&ctx);
|
||||||
|
|
Loading…
Reference in a new issue