Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Leshiy committed May 24, 2022
1 parent 1fb7206 commit dc15004
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions jormungandr/src/rest/mod.rs
Expand Up @@ -27,13 +27,12 @@ pub async fn start_rest_server(config: Config, context: ContextLock) {
.write()
.await
.set_rest_server_stopper(ServerStopper::new(stopper_tx));
let api = v0::filter(context.clone()).or(v1::filter(context.clone()));
#[cfg(feature = "evm")]
let api = api.or(v2::filter(context.clone()));

let api = warp::path!("api" / ..)
.and(
v0::filter(context.clone())
.or(v1::filter(context.clone()))
.or(v2::filter(context.clone())),
)
.and(api)
.with(warp::filters::trace::trace(|info| {
use http_zipkin::get_trace_context;
use tracing::field::Empty;
Expand Down

0 comments on commit dc15004

Please sign in to comment.