diff --git a/src/main.rs b/src/main.rs index e10f29cb..adee197e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -71,7 +71,7 @@ async fn proxy_eth_rpc( Ok(res.text().await?) } -/// convert result into an http response +/// convert result into an http response. use this at the end of your warp filter pub fn handle_anyhow_errors(res: anyhow::Result) -> Box { match res { Ok(r) => Box::new(r.into_response()),