missing clone
This commit is contained in:
parent
d9c01a59a3
commit
516e130558
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user