missing clone

This commit is contained in:
Bryan Stitt 2022-12-28 00:32:51 -08:00
parent d9c01a59a3
commit 516e130558
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;