better comment

This commit is contained in:
Bryan Stitt 2022-03-24 14:08:40 -07:00
parent 485f22ceae
commit 7afc0141a6

View File

@ -71,7 +71,7 @@ async fn proxy_eth_rpc(
Ok(res.text().await?) 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<T: warp::Reply>(res: anyhow::Result<T>) -> Box<dyn warp::Reply> { pub fn handle_anyhow_errors<T: warp::Reply>(res: anyhow::Result<T>) -> Box<dyn warp::Reply> {
match res { match res {
Ok(r) => Box::new(r.into_response()), Ok(r) => Box::new(r.into_response()),