File tree Expand file tree Collapse file tree 3 files changed +4
-32
lines changed Expand file tree Collapse file tree 3 files changed +4
-32
lines changed Original file line number Diff line number Diff line change @@ -2360,9 +2360,9 @@ dependencies = [
23602360
23612361[[package ]]
23622362name = " tower"
2363- version = " 0.4.1 "
2363+ version = " 0.4.2 "
23642364source = " registry+https://github.com/rust-lang/crates.io-index"
2365- checksum = " 9ebe6c299e025c20c08a730be54f816b90089d153a58b8648adea98eee85c82a "
2365+ checksum = " 5ed5c471f00236abe8c633860d8234646cb4993eaad7720844f79bb1b94e949b "
23662366dependencies = [
23672367 " futures-core" ,
23682368 " futures-util" ,
Original file line number Diff line number Diff line change @@ -15,17 +15,9 @@ futures = "0.3.9"
1515linkerd-error = { path = " ../error" }
1616pin-project = " 1"
1717tokio = { version = " 1" , features = [" time" ] }
18+ tower = { version = " 0.4.2" , features = [" util" ] }
1819tracing = " 0.1"
1920
20- [dependencies .tower ]
21- version = " 0.4"
22- # disable tower's tracing `log` integration for performance reasons, since we
23- # will consume tower's traces as traces.
24- default-features = false
25- features = [
26- " util" ,
27- ]
28-
2921[dev-dependencies ]
3022tower-test = " 0.4"
3123tokio-test = " 0.4"
Original file line number Diff line number Diff line change 1- pub use tower:: layer:: Layer ;
2-
3- /// Make a `Layer` from a closure.
4- pub fn mk < F > ( f : F ) -> LayerFn < F > {
5- LayerFn ( f)
6- }
7-
8- /// Make a `Layer` from a closure.
9- #[ derive( Clone , Copy , Debug ) ]
10- pub struct LayerFn < F > ( F ) ;
11-
12- impl < F , S , Out > Layer < S > for LayerFn < F >
13- where
14- F : Fn ( S ) -> Out ,
15- {
16- type Service = Out ;
17-
18- fn layer ( & self , inner : S ) -> Self :: Service {
19- ( self . 0 ) ( inner)
20- }
21- }
1+ pub use tower:: layer:: { layer_fn as mk, Layer , LayerFn } ;
You can’t perform that action at this time.
0 commit comments