Skip to content

Commit

Permalink
add ? (BError)
Browse files Browse the repository at this point in the history
  • Loading branch information
cospectrum committed Apr 26, 2024
1 parent 521970a commit 28613b6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pingora-proxy/tests/utils/server_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,11 @@ impl ProxyHttp for ExampleProxyHttp {
) -> Result<Box<HttpPeer>> {
let req = session.req_header();
if req.headers.contains_key("x-uds-peer") {
return Ok(Box::new(
HttpPeer::new_uds("/tmp/nginx-test.sock", false, "".to_string()).unwrap(),
));
return Ok(Box::new(HttpPeer::new_uds(
"/tmp/nginx-test.sock",
false,
"".to_string(),
)?));
}
let port = req
.headers
Expand Down

0 comments on commit 28613b6

Please sign in to comment.