Skip to content

Commit c73a366

Browse files
author
David Calavera
authored
Upgrade to lambda_http 0.7 (#100)
Make the response future to be Send. Signed-off-by: David Calavera <[email protected]> Signed-off-by: David Calavera <[email protected]>
1 parent 3cb82a0 commit c73a366

File tree

3 files changed

+69
-18
lines changed

3 files changed

+69
-18
lines changed

Cargo.lock

Lines changed: 66 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ exclude = ["examples"]
1818

1919
[dependencies]
2020
http = "0.2.4"
21-
lambda-extension = "0.6.0"
22-
lambda_http = "0.6.1"
21+
lambda-extension = "0.7.0"
22+
lambda_http = "0.7.0"
2323
reqwest = { version = "0.11", default-features = false, features = ["json"] }
2424
tokio = { version = "1.20.0", features = ["macros", "io-util", "sync", "rt-multi-thread", "time"] }
2525
tokio-retry = "0.3"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ impl Adapter {
173173
impl Service<Request> for Adapter {
174174
type Response = Response<Body>;
175175
type Error = Error;
176-
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>>>>;
176+
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send>>;
177177

178178
fn poll_ready(&mut self, _cx: &mut core::task::Context<'_>) -> core::task::Poll<Result<(), Self::Error>> {
179179
core::task::Poll::Ready(Ok(()))

0 commit comments

Comments
 (0)