From 7afc0141a67a77002f024294b476f58c922c758e Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 24 Mar 2022 14:08:40 -0700 Subject: [PATCH] better comment --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()),