remove timeout layer. its not playing nice with moka
This commit is contained in:
parent
6d4d8ea840
commit
94cbe6153a
@ -266,16 +266,6 @@ pub async fn serve(
|
|||||||
.layer(Extension(app.clone()))
|
.layer(Extension(app.clone()))
|
||||||
// frontend caches
|
// frontend caches
|
||||||
.layer(Extension(Arc::new(response_cache)))
|
.layer(Extension(Arc::new(response_cache)))
|
||||||
// request timeout
|
|
||||||
.layer(
|
|
||||||
ServiceBuilder::new()
|
|
||||||
// this middleware goes above `TimeoutLayer` because it will receive
|
|
||||||
// errors returned by `TimeoutLayer`
|
|
||||||
.layer(HandleErrorLayer::new(|_: BoxError| async {
|
|
||||||
Web3ProxyError::Timeout(Some(Duration::from_secs(5 * 60)))
|
|
||||||
}))
|
|
||||||
.layer(TimeoutLayer::new(Duration::from_secs(5 * 60))),
|
|
||||||
)
|
|
||||||
// request id
|
// request id
|
||||||
.layer(
|
.layer(
|
||||||
TraceLayer::new_for_http().make_span_with(|request: &Request<Body>| {
|
TraceLayer::new_for_http().make_span_with(|request: &Request<Body>| {
|
||||||
|
Loading…
Reference in New Issue
Block a user