Skip to content

Commit ba67188

Browse files
hawkwolix0r
authored andcommitted
tower: update dependency to 0.4.7 (#990)
This updates `tower` to v0.4.7. This picks up tower-rs/tower#581, which fixes a task leak in `SpawnReady` that resulted in a memory leak in the proxy.
1 parent 86b73aa commit ba67188

File tree

36 files changed

+42
-105
lines changed

36 files changed

+42
-105
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2237,9 +2237,9 @@ dependencies = [
22372237

22382238
[[package]]
22392239
name = "tower"
2240-
version = "0.4.5"
2240+
version = "0.4.7"
22412241
source = "registry+https://github.com/rust-lang/crates.io-index"
2242-
checksum = "713c629c07a3a97f741c140e474e7304294fabec66a43a33f0832e98315ab07f"
2242+
checksum = "bf0aa6dfc29148c3826708dabbfa83c121eeb84df4d1468220825e3a33651687"
22432243
dependencies = [
22442244
"futures-core",
22452245
"futures-util",

hyper-balance/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ futures = "0.3.9"
1111
http = "0.2"
1212
hyper = "0.14.2"
1313
pin-project = "1"
14-
tower = { version = "0.4.5", default-features = false, features = ["load"] }
14+
tower = { version = "0.4.7", default-features = false, features = ["load"] }
1515
tokio = { version = "1", features = ["macros"] }
1616

1717
[dev-dependencies]

linkerd/app/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ regex = "1.0.0"
2929
thiserror = "1.0"
3030
tokio = { version = "1", features = ["rt"] }
3131
tonic = { version = "0.4", default-features = false, features = ["prost"] }
32-
tower = "0.4"
32+
tower = "0.4.7"
3333
tracing = "0.1.23"

linkerd/app/core/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ tracing = "0.1.23"
7070
pin-project = "1"
7171

7272
[dependencies.tower]
73-
version = "0.4"
74-
# disable tower's tracing `log` integration for performance reasons, since we
75-
# will consume tower's traces as traces.
73+
version = "0.4.7"
7674
default-features = false
7775
features = [
7876
"buffer",

linkerd/app/gateway/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ linkerd-app-inbound = { path = "../inbound" }
1515
linkerd-app-outbound = { path = "../outbound" }
1616
thiserror = "1.0"
1717
tokio = { version = "1", features = ["sync"] }
18-
tower = { version = "0.4.5", default-features = false }
18+
tower = { version = "0.4.7", default-features = false }
1919
tracing = "0.1.23"
2020

2121
[dev-dependencies]
2222
tokio = { version = "1", features = ["rt", "macros"] }
2323
tokio-test = "0.4"
24-
tower = { version = "0.4.5", default-features = false, features = ["util"] }
24+
tower = { version = "0.4.7", default-features = false, features = ["util"] }
2525
tower-test = "0.4"
2626
linkerd-app-test = { path = "../test" }

linkerd/app/inbound/Cargo.toml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,9 @@ indexmap = "1.0"
1717
linkerd-app-core = { path = "../core" }
1818
thiserror = "1.0"
1919
tokio = { version = "1", features = ["sync"] }
20+
tower = { version = "0.4.7", features = ["util"] }
2021
tracing = "0.1.23"
2122

22-
[dependencies.tower]
23-
version = "0.4"
24-
# disable tower's tracing `log` integration for performance reasons, since we
25-
# will consume tower's traces as traces.
26-
default-features = false
27-
features = [
28-
"util",
29-
]
30-
3123
[dev-dependencies]
3224
hyper = { version = "0.14.2", features = ["http1", "http2"] }
3325
linkerd-app-test = { path = "../test" }

linkerd/app/integration/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ socket2 = "0.3.12"
3434
rustls = "0.19"
3535
tokio = { version = "1", features = ["io-util", "net", "rt", "macros"]}
3636
tokio-rustls = "0.22"
37-
tower = { version = "0.4.5", default-features = false}
37+
tower = { version = "0.4.7", default-features = false}
3838
tonic = { version = "0.4", default-features = false }
3939
tracing = "0.1.23"
4040
webpki = "0.21"

linkerd/app/outbound/Cargo.toml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,10 @@ linkerd-identity = { path = "../../identity" }
2424
linkerd-retry = { path = "../../retry" }
2525
thiserror = "1.0"
2626
tokio = { version = "1", features = ["sync"]}
27+
tower = { version = "0.4.7", features = ["util"]}
2728
tracing = "0.1.23"
2829
pin-project = "1"
2930

30-
[dependencies.tower]
31-
version = "0.4"
32-
# disable tower's tracing `log` integration for performance reasons, since we
33-
# will consume tower's traces as traces.
34-
default-features = false
35-
features = [
36-
"util",
37-
]
38-
3931
[dev-dependencies]
4032
hyper = { version = "0.14.2", features = ["http1", "http2"] }
4133
ipnet = "2.0"

linkerd/app/outbound/src/http/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ async fn profile_endpoint_propagates_conn_errors() {
167167
});
168168

169169
let rsp = client
170-
.ready_and()
170+
.ready()
171171
.await
172172
.expect("Client must not fail")
173173
.call(

linkerd/app/test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ linkerd-io = { path = "../../io", features = ["tokio-test"] }
2929
regex = "1"
3030
tokio = { version = "1", features = ["io-util", "net", "rt", "sync"]}
3131
tokio-test = "0.4"
32-
tower = { version = "0.4.5", default-features = false}
32+
tower = { version = "0.4.7", default-features = false}
3333
tracing = "0.1.23"
3434
tracing-subscriber = "0.2.16"
3535

0 commit comments

Comments
 (0)