Commit f170c51
authored
refactor(app/outbound): simplify backend metrics layer (#4299)
this branch makes some small preliminary changes to the outbound proxy's
backend metrics layer.
this will simplify the introduction of additional middleware layers.
---
* refactor(app/outbound): simplify backend layer construction
this is akin to #3334, which cleaned up the equivalent expression in
`linkerd/app/outbound/src/http/logical/policy/route/metrics.rs`.
Signed-off-by: katelyn martin <kate@buoyant.io>
* refactor(app/outbound): type aliases in backend metrics layer
before we introduce additional layers to our backend stack, we should
define type aliases as prophylaxis against:
<https://rust-lang.github.io/rust-clippy/stable/index.html#type_complexity>
Signed-off-by: katelyn martin <kate@buoyant.io>
---------
Signed-off-by: katelyn martin <kate@buoyant.io>1 parent 9b3e51d commit f170c51
File tree
1 file changed
+21
-19
lines changed- linkerd/app/outbound/src/http/logical/policy/route/backend
1 file changed
+21
-19
lines changedLines changed: 21 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
33 | 43 | | |
34 | 44 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
0 commit comments