Skip to content

Commit 12ae446

Browse files
authored
Merge pull request kmesh-net#48 from hzxuzhonghu/rvert-hyper-name
keep hyper_util, so we donot need to change the code once we depend o…
2 parents bf6e5ca + f82f426 commit 12ae446

9 files changed

Lines changed: 11 additions & 11 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ hyper-util = { git = "https://github.com/awgn/hyper-util.git", branch = "event
2525

2626
[workspace.dependencies]
2727
envoy-data-plane-api = { path = "envoy-data-plane-api" }
28-
orion-hyper-util = { package = "hyper-util", version = "0.1.15", features = ["full"] }
2928
orion-configuration = { path = "orion-configuration" }
3029
orion-data-plane-api = { path = "orion-data-plane-api" }
3130
orion-error = { path = "orion-error" }
@@ -61,6 +60,7 @@ tracing = "0.1"
6160
tracing-subscriber = "0.3"
6261
tracing-test = { version = "0.2", features = ["no-env-filter"] }
6362
url = "2"
63+
hyper-util = { version = "0.1.15", features = ["full"] }
6464

6565

6666
[profile.release]

orion-data-plane-api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ tower.workspace = true
2020
tracing.workspace = true
2121

2222
[dev-dependencies]
23-
orion-hyper-util.workspace = true
23+
hyper-util.workspace = true

orion-data-plane-api/tests/xds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use std::{
77
time::Duration,
88
};
99

10+
use hyper_util::rt::tokio::TokioIo;
1011
use orion_data_plane_api::{
1112
envoy_data_plane_api::{
1213
envoy::{
@@ -28,7 +29,6 @@ use orion_data_plane_api::{
2829
},
2930
xds::client::DiscoveryClientBuilder,
3031
};
31-
use orion_hyper_util::rt::tokio::TokioIo;
3232
use tonic::transport::Server;
3333

3434
use orion_data_plane_api::xds::{

orion-lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ http-body.workspace = true
1818
http-body-util.workspace = true
1919
hyper = { version = "1", features = ["full"] }
2020
hyper-rustls = { version = "0.27.1", features = ["default", "http2"] }
21-
orion-hyper-util.workspace = true
21+
hyper-util.workspace = true
2222
orion-configuration.workspace = true
2323
orion-error.workspace = true
2424
orion-xds.workspace = true

orion-lib/src/clusters/retry_policy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl<'a, B: Body> FailureKind<'a, B> {
8585
}
8686
}
8787

88-
if let Some(h_err) = err.downcast_ref::<orion_hyper_util::client::legacy::Error>() {
88+
if let Some(h_err) = err.downcast_ref::<hyper_util::client::legacy::Error>() {
8989
if let Some(source) = h_err.source() {
9090
return Self::try_infer_from_error(source);
9191
}

orion-lib/src/listeners/filterchain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ use compact_str::CompactString;
3333
use futures::TryFutureExt;
3434
use http::Request;
3535
use hyper::service::Service;
36+
use hyper_util::{rt::TokioIo, server::conn::auto::Builder as HyperServerBuilder};
3637
use orion_configuration::config::{
3738
listener::{FilterChain as FilterChainConfig, MainFilter},
3839
network_filters::{
3940
http_connection_manager::CodecType,
4041
network_rbac::{NetworkContext, NetworkRbac},
4142
},
4243
};
43-
use orion_hyper_util::{rt::TokioIo, server::conn::auto::Builder as HyperServerBuilder};
4444
use rustls::{server::Acceptor, ServerConfig};
4545
use std::{net::SocketAddr, sync::Arc};
4646
use tokio::net::TcpStream;

orion-lib/src/listeners/http_connection_manager/upgrade.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ use crate::{
88
};
99
use http::{uri::Parts as UriParts, StatusCode, Uri, Version};
1010
use hyper::{body::Incoming, Request, Response};
11+
use hyper_util::rt::TokioIo;
1112
use orion_configuration::config::network_filters::http_connection_manager::route::{
1213
RouteMatchResult, UpgradeAction, UpgradeActionType,
1314
};
1415
use orion_error::Context;
15-
use orion_hyper_util::rt::TokioIo;
1616
use std::net::SocketAddr;
1717
use tokio::io::copy_bidirectional;
1818
use tracing::{debug, error};

orion-lib/src/transport/connector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use std::{
2828

2929
use http::uri::Authority;
3030
use hyper::Uri;
31-
use orion_hyper_util::rt::TokioIo;
31+
use hyper_util::rt::TokioIo;
3232
use pingora_timeout::fast_timeout::fast_timeout;
3333
use tokio::net::{TcpSocket, TcpStream};
3434
use tower::Service;

orion-lib/src/transport/http_channel.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ use http::{
4141
use http_body_util::BodyExt;
4242
use hyper::{body::Incoming, Request, Uri};
4343
use hyper_rustls::{FixedServerNameResolver, HttpsConnector};
44+
use hyper_util::client::legacy::connect::Connect;
45+
use hyper_util::client::legacy::{Builder, Client};
46+
use hyper_util::rt::tokio::TokioTimer;
4447
use orion_configuration::config::{
4548
cluster::http_protocol_options::{Codec, HttpProtocolOptions},
4649
network_filters::http_connection_manager::RetryPolicy,
4750
};
48-
use orion_hyper_util::client::legacy::connect::Connect;
49-
use orion_hyper_util::client::legacy::{Builder, Client};
50-
use orion_hyper_util::rt::tokio::TokioTimer;
5151
use pingora_timeout::fast_timeout::fast_timeout;
5252
use pretty_duration::pretty_duration;
5353
use rustls::ClientConfig;

0 commit comments

Comments
 (0)