Skip to content

Commit

Permalink
Fix static lifetimes req
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Jun 23, 2023
1 parent 9d86ecb commit 1caa74e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ntex/src/web/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ where
S: Service<R, Response = WebResponse, Error = E>,
E: std::fmt::Debug,
{
app.call(req).await.unwrap()
app.service_call(req).await.unwrap()
}

/// Helper function that returns a response body of a TestRequest
Expand Down Expand Up @@ -140,7 +140,7 @@ where
S: Service<Request, Response = WebResponse>,
{
let mut resp = app
.call(req)
.service_call(req)
.await
.unwrap_or_else(|_| panic!("read_response failed at application call"));

Expand Down
2 changes: 1 addition & 1 deletion ntex/src/ws/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ where
let msg = Connect::new(head.uri.clone()).set_addr(self.addr);
log::trace!("Open ws connection to {:?} addr: {:?}", head.uri, self.addr);

let io = self.connector.call(msg).await?;
let io = self.connector.clone().service_call(msg).await?;

// create Framed and send request
let codec = h1::ClientCodec::default();
Expand Down

0 comments on commit 1caa74e

Please sign in to comment.