From 987ed181cd9209455d74d3477299c57942a46afe Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 22 Sep 2022 22:15:56 +0000 Subject: [PATCH] comments --- web3_proxy/src/rpcs/request.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web3_proxy/src/rpcs/request.rs b/web3_proxy/src/rpcs/request.rs index ae2ec73d..73b86bf0 100644 --- a/web3_proxy/src/rpcs/request.rs +++ b/web3_proxy/src/rpcs/request.rs @@ -35,9 +35,13 @@ pub struct OpenRequestHandle { } pub enum RequestErrorHandler { + /// Contains the percent chance to save the revert SaveReverts(f32), + /// Log at the debug level. Use when errors are expected. DebugLevel, + /// Log at the error level. Use when errors are bad. ErrorLevel, + /// Log at the warn level. Use when errors do not cause problems. WarnLevel, } @@ -47,7 +51,7 @@ impl From for RequestErrorHandler { Level::DEBUG => RequestErrorHandler::DebugLevel, Level::ERROR => RequestErrorHandler::ErrorLevel, Level::WARN => RequestErrorHandler::WarnLevel, - _ => unimplemented!(), + _ => unimplemented!("unexpected tracing Level"), } } }