diff --git a/query-engine/core/src/executor/request_context.rs b/query-engine/core/src/executor/request_context.rs index c24e26572553..26757fecbb85 100644 --- a/query-engine/core/src/executor/request_context.rs +++ b/query-engine/core/src/executor/request_context.rs @@ -18,17 +18,13 @@ tokio::task_local! { /// /// If we had a query context we carry for the entire lifetime of the query, it would belong there. pub(crate) fn get_request_now() -> PrismaValue { - - REQUEST_CONTEXT - .try_with(|rc| rc.request_now.clone()) - .unwrap_or_else(|_| + REQUEST_CONTEXT.try_with(|rc| rc.request_now.clone()).unwrap_or_else(|_| // FIXME: we want to bypass task locals if this code is executed outside of a tokio context. As // of this writing, it happens only in the query validation test suite. // // Eventually, this will go away when we have a plain query context reference we pass around. // Skipping the branch for WASM since there we never have a running tokio runtime - PrismaValue::DateTime(chrono::Utc::now().into()) - ) + PrismaValue::DateTime(chrono::Utc::now().into())) } /// The engine protocol used for the whole duration of a request.