Skip to content

Commit 40e2658

Browse files
authored
Remove seemingly unnecessary Req -> Parts -> Req conversion (#353)
Note: I haven't tested this on AWS Lambda - just noticed it while reading the source.
1 parent f7fb932 commit 40e2658

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lambda-runtime/src/client.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ where
4444

4545
pub(crate) async fn call(&self, req: Request<Body>) -> Result<Response<Body>, Error> {
4646
let req = self.set_origin(req)?;
47-
let (parts, body) = req.into_parts();
48-
let req = Request::from_parts(parts, body);
4947
let response = self.client.request(req).await?;
5048
Ok(response)
5149
}

0 commit comments

Comments
 (0)