From ba6715170641ff70421574684bd423937fe44a63 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 16 Jun 2023 23:48:16 -0700 Subject: [PATCH] lint --- web3_proxy/src/admin_queries.rs | 2 +- web3_proxy/src/frontend/mod.rs | 2 +- web3_proxy/src/frontend/users/authentication.rs | 2 +- web3_proxy/src/http_params.rs | 2 +- web3_proxy/src/stats/mod.rs | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web3_proxy/src/admin_queries.rs b/web3_proxy/src/admin_queries.rs index 04c8183e..cc3cf6c1 100644 --- a/web3_proxy/src/admin_queries.rs +++ b/web3_proxy/src/admin_queries.rs @@ -10,7 +10,7 @@ use axum::{ use entities::{admin, login, user, user_tier}; use ethers::prelude::Address; use hashbrown::HashMap; -use log::{debug, info}; +use log::{info, trace}; use migration::sea_orm::{ self, ActiveModelTrait, ColumnTrait, EntityTrait, IntoActiveModel, QueryFilter, }; diff --git a/web3_proxy/src/frontend/mod.rs b/web3_proxy/src/frontend/mod.rs index 3263d572..54259b22 100644 --- a/web3_proxy/src/frontend/mod.rs +++ b/web3_proxy/src/frontend/mod.rs @@ -17,7 +17,7 @@ use axum::{ }; use http::{header::AUTHORIZATION, StatusCode}; use listenfd::ListenFd; -use log::{debug, info}; +use log::{info}; use moka::future::{Cache, CacheBuilder}; use std::net::SocketAddr; use std::sync::Arc; diff --git a/web3_proxy/src/frontend/users/authentication.rs b/web3_proxy/src/frontend/users/authentication.rs index ada79763..c11c5c6c 100644 --- a/web3_proxy/src/frontend/users/authentication.rs +++ b/web3_proxy/src/frontend/users/authentication.rs @@ -18,7 +18,7 @@ use entities::{balance, login, pending_login, referee, referrer, rpc_key, user}; use ethers::{prelude::Address, types::Bytes}; use hashbrown::HashMap; use http::StatusCode; -use log::{debug, trace, warn}; +use log::{trace, warn}; use migration::sea_orm::prelude::{Decimal, Uuid}; use migration::sea_orm::{ self, ActiveModelTrait, ColumnTrait, DatabaseTransaction, EntityTrait, IntoActiveModel, diff --git a/web3_proxy/src/http_params.rs b/web3_proxy/src/http_params.rs index 6feaea97..28bc59de 100644 --- a/web3_proxy/src/http_params.rs +++ b/web3_proxy/src/http_params.rs @@ -9,7 +9,7 @@ use axum::{ use chrono::{NaiveDateTime, Utc}; use entities::login; use hashbrown::HashMap; -use log::{debug, warn}; +use log::{trace, warn}; use migration::sea_orm::{ColumnTrait, EntityTrait, QueryFilter}; use redis_rate_limiter::{redis::AsyncCommands, RedisConnection}; diff --git a/web3_proxy/src/stats/mod.rs b/web3_proxy/src/stats/mod.rs index ed86e896..fcd3214b 100644 --- a/web3_proxy/src/stats/mod.rs +++ b/web3_proxy/src/stats/mod.rs @@ -17,7 +17,7 @@ use derive_more::From; use entities::sea_orm_active_enums::TrackingLevel; use entities::{balance, referee, referrer, rpc_accounting_v2, rpc_key}; use influxdb2::models::DataPoint; -use log::{debug, trace}; +use log::trace; use migration::sea_orm::prelude::Decimal; use migration::sea_orm::{ self, ColumnTrait, DatabaseConnection, EntityTrait, QueryFilter, TransactionTrait, @@ -900,7 +900,7 @@ impl RpcQueryStats { } // for now, always return a flat cost - return Decimal::from_str("0.000018").unwrap(); + Decimal::from_str("0.000018").unwrap() /* // TODO: get cost_minimum, cost_free_bytes, cost_per_byte, cache_hit_divisor from config. each chain will be different