Skip to content

Commit

Permalink
Update tower-http to 0.2.0 (#748)
Browse files Browse the repository at this point in the history
Change the bounds of body's error type for better compatibility with middleware
like `DecompressionLayer`.

Signed-off-by: kazk <kazk.dev@gmail.com>
  • Loading branch information
kazk authored Dec 7, 2021
1 parent 32d2b61 commit c543603
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ warp = { version = "0.3", default-features = false, features = ["tls"] }
http = "0.2.5"
json-patch = "0.2.6"
tower = { version = "0.4.6", features = ["limit"] }
tower-http = { version = "0.1.0", features = ["trace", "decompression-gzip"] }
tower-http = { version = "0.2.0", features = ["trace", "decompression-gzip"] }
hyper = { version = "0.14.13", features = ["client", "http1", "stream", "tcp"] }
thiserror = "1.0.29"

Expand Down
2 changes: 1 addition & 1 deletion kube-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ hyper-tls = { version = "0.5.0", optional = true }
hyper-rustls = { version = "0.23.0", optional = true }
tokio-tungstenite = { version = "0.15.0", optional = true }
tower = { version = "0.4.6", optional = true, features = ["buffer", "util"] }
tower-http = { version = "0.1.1", optional = true, features = ["auth", "map-response-body", "trace"] }
tower-http = { version = "0.2.0", optional = true, features = ["auth", "map-response-body", "trace"] }
hyper-timeout = {version = "0.4.1", optional = true }
tame-oauth = { version = "0.6.0", features = ["gcp"], optional = true }
pin-project = { version = "1.0.4", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion kube-client/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl Client {
S::Future: Send + 'static,
S::Error: Into<BoxError>,
B: http_body::Body<Data = bytes::Bytes> + Send + 'static,
B::Error: std::error::Error + Send + Sync + 'static,
B::Error: Into<BoxError>,
T: Into<String>,
{
// Transform response body to `hyper::Body` and use type erased error to avoid type parameters.
Expand Down

0 comments on commit c543603

Please sign in to comment.