|
1 | | -use super::classify; |
2 | | -use super::dst::Route; |
3 | | -use super::http_metrics::retries::Handle; |
4 | | -use super::metrics::HttpRouteRetry; |
5 | | -use crate::profiles; |
6 | 1 | use futures::future; |
7 | | -use linkerd_error::Error; |
| 2 | +use linkerd_app_core::{ |
| 3 | + classify, |
| 4 | + dst::Route, |
| 5 | + http_metrics::retries::Handle, |
| 6 | + metrics::HttpRouteRetry, |
| 7 | + profiles, |
| 8 | + proxy::http::{ClientHandle, HttpBody}, |
| 9 | + svc::{layer, Either, Param}, |
| 10 | + Error, |
| 11 | +}; |
8 | 12 | use linkerd_http_classify::{Classify, ClassifyEos, ClassifyResponse}; |
9 | 13 | use linkerd_http_retry::ReplayBody; |
10 | | -use linkerd_proxy_http::ClientHandle; |
11 | 14 | use linkerd_retry as retry; |
12 | | -use linkerd_stack::{layer, Either, Param}; |
13 | 15 | use std::sync::Arc; |
14 | 16 |
|
15 | 17 | pub fn layer<N>( |
@@ -60,7 +62,7 @@ impl retry::NewPolicy<Route> for NewRetryPolicy { |
60 | 62 |
|
61 | 63 | impl<A, B, E> retry::Policy<http::Request<ReplayBody<A>>, http::Response<B>, E> for RetryPolicy |
62 | 64 | where |
63 | | - A: http_body::Body + Unpin, |
| 65 | + A: HttpBody + Unpin, |
64 | 66 | A::Error: Into<Error>, |
65 | 67 | { |
66 | 68 | type Future = future::Ready<Self>; |
@@ -125,7 +127,7 @@ where |
125 | 127 |
|
126 | 128 | impl<A, B, E> retry::PrepareRequest<http::Request<A>, http::Response<B>, E> for RetryPolicy |
127 | 129 | where |
128 | | - A: http_body::Body + Unpin, |
| 130 | + A: HttpBody + Unpin, |
129 | 131 | A::Error: Into<Error>, |
130 | 132 | { |
131 | 133 | type RetryRequest = http::Request<ReplayBody<A>>; |
|
0 commit comments