From e89dcea5756e3cb1760086eb747e06fc5a1fdcbb Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 19 Sep 2024 16:03:45 +0200 Subject: [PATCH] throttle: rename redis_throttle() to redis_cell_throttle() --- crates/throttle/src/throttle.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/throttle/src/throttle.rs b/crates/throttle/src/throttle.rs index 03959b1e..915b705e 100644 --- a/crates/throttle/src/throttle.rs +++ b/crates/throttle/src/throttle.rs @@ -55,7 +55,7 @@ fn local_throttle( }) } -async fn redis_throttle( +async fn redis_cell_throttle( conn: &RedisConnection, key: &str, limit: u64, @@ -115,7 +115,7 @@ pub async fn throttle( ) -> Result { match (force_local, REDIS.get()) { (false, Some(redis)) => { - redis_throttle(redis, key, limit, period, max_burst, quantity).await + redis_cell_throttle(redis, key, limit, period, max_burst, quantity).await } _ => local_throttle(key, limit, period, max_burst, quantity), }