From 516e1305580ee4c2b4a63c7658c3c79a027ee545 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 28 Dec 2022 00:32:51 -0800 Subject: [PATCH] missing clone --- web3_proxy/src/app/mod.rs | 2 +- web3_proxy/src/frontend/authorization.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web3_proxy/src/app/mod.rs b/web3_proxy/src/app/mod.rs index 16f46f5b..6f6549d1 100644 --- a/web3_proxy/src/app/mod.rs +++ b/web3_proxy/src/app/mod.rs @@ -716,7 +716,7 @@ impl Web3ProxyApp { // delete any entries that are too old // TODO: pipe if let Err(err) = redis_conn - .zrembyscore::<_, _, _, u64>(recent_ips_key, i64::MIN, oldest) + .zrembyscore::<_, _, _, u64>(recent_ips_key.clone(), i64::MIN, oldest) .await { warn!("unable to clear recent_ips: {}", err); diff --git a/web3_proxy/src/frontend/authorization.rs b/web3_proxy/src/frontend/authorization.rs index 0b55cb41..85460701 100644 --- a/web3_proxy/src/frontend/authorization.rs +++ b/web3_proxy/src/frontend/authorization.rs @@ -16,7 +16,7 @@ use futures::TryFutureExt; use hashbrown::HashMap; use http::HeaderValue; use ipnet::IpNet; -use log::{error, warn, debug}; +use log::{error, warn}; use migration::sea_orm::{ColumnTrait, DatabaseConnection, EntityTrait, QueryFilter}; use parking_lot::Mutex; use redis_rate_limiter::redis::AsyncCommands;