chore: remove rpc logging (#89)

This commit is contained in:
Noah Citron 2022-11-04 17:09:13 -04:00 committed by GitHub
parent 0706755ec2
commit 50cdfe25ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -3,7 +3,7 @@ use ethers::{
types::{Address, Transaction, TransactionReceipt, H256},
};
use eyre::Result;
use log::{info, warn};
use log::info;
use std::{fmt::Display, net::SocketAddr, str::FromStr, sync::Arc};
use tokio::sync::RwLock;
@ -242,8 +242,5 @@ async fn start(rpc: RpcInner) -> Result<(HttpServerHandle, SocketAddr)> {
}
fn convert_err<T, E: Display>(res: Result<T, E>) -> Result<T, Error> {
res.map_err(|err| {
warn!("{}", err);
Error::Custom(err.to_string())
})
res.map_err(|err| Error::Custom(err.to_string()))
}