Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgb committed Sep 24, 2024
1 parent bbe0d71 commit 26b7989
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions dynamic-proxy/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ impl ProxyClient {
pub async fn request(
&self,
request: Request<SimpleBody>,
) -> Result<
(Response<SimpleBody>, Option<UpgradeHandler>),
Infallible,
> {
) -> Result<(Response<SimpleBody>, Option<UpgradeHandler>), Infallible> {
let url = request.uri().to_string();

let res = self.handle_request(request).await;
Expand Down
3 changes: 2 additions & 1 deletion plane/src/proxy/proxy_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ impl Service<Request<Incoming>> for ProxyState {
apply_cors_headers(&mut res);
res.headers_mut().insert(
"x-plane-backend-id",
HeaderValue::from_str(&route_info.backend_id.to_string()).expect("Backend ID is always a valid header value"),
HeaderValue::from_str(&route_info.backend_id.to_string())
.expect("Backend ID is always a valid header value"),
);

Ok(res)
Expand Down

0 comments on commit 26b7989

Please sign in to comment.