mirror of
https://github.com/mailscope/kumomta.git
synced 2026-09-09 03:52:13 +00:00
throttle: rename redis_throttle() to redis_cell_throttle()
This commit is contained in:
committed by
Wez Furlong
parent
073efa24d0
commit
e89dcea575
@@ -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),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user