We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae3ce1d commit e193e70Copy full SHA for e193e70
lambda/src/lib.rs
@@ -89,10 +89,6 @@ impl Config {
89
}
90
91
92
-tokio::task_local! {
93
- pub static INVOCATION_CTX: types::Context;
94
-}
95
-
96
/// A trait describing an asynchronous function `A` to `B.
97
pub trait Handler<A, B> {
98
/// Errors returned by this handler.
@@ -212,7 +208,7 @@ where
212
208
let body = serde_json::from_slice(&body)?;
213
209
214
210
let request_id = &ctx.request_id.clone();
215
- let f = INVOCATION_CTX.scope(ctx.clone(), handler.call(body, ctx));
211
+ let f = handler.call(body, ctx);
216
217
let req = match f.await {
218
Ok(res) => EventCompletionRequest { request_id, body: res }.into_req()?,
0 commit comments