throttle: rename redis_throttle() to redis_cell_throttle()

This commit is contained in:
Dirkjan Ochtman
2024-09-23 14:11:56 -07:00
committed by Wez Furlong
parent 073efa24d0
commit e89dcea575
+2 -2
View File
@@ -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<ThrottleResult, Error> {
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),
}