Skip to content

Commit 9b56377

Browse files
huangdijiaCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent cc70280 commit 9b56377

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/en/components/rate-limit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class UserController
139139
| `decay` | `int` | `60` | Time window in seconds |
140140
| `algorithm` | `Algorithm` | `Algorithm::FIXED_WINDOW` | Algorithm: fixed_window, sliding_window, token_bucket, leaky_bucket |
141141
| `pool` | `?string` | `null` | Redis connection pool to use |
142-
| `response` | `string` | `'Too Many Attempts.'` | Custom response when rate limit is exceeded |
142+
| `response` | `string` | `'Too Many Attempts, Please try again in %d seconds.'` | Custom response when rate limit is exceeded |
143143
| `responseCode` | `int` | `429` | HTTP status code when rate limit is exceeded |
144144

145145
### Using AutoSort for Smart Multi-Rate-Limit Rule Sorting

docs/zh-cn/components/rate-limit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class UserController
139139
| `decay` | `int` | `60` | 时间窗口(秒) |
140140
| `algorithm` | `Algorithm` | `Algorithm::FIXED_WINDOW` | 算法:fixed_window, sliding_window, token_bucket, leaky_bucket |
141141
| `pool` | `?string` | `null` | 使用的 Redis 连接池 |
142-
| `response` | `string` | `'Too Many Attempts.'` | 超出限流时的自定义响应 |
142+
| `response` | `string` | `'Too Many Attempts, Please try again in %d seconds.'` | 超出限流时的自定义响应 |
143143
| `responseCode` | `int` | `429` | 超出限流时的 HTTP 状态码 |
144144

145145
### 使用 AutoSort 实现多限流规则智能排序

docs/zh-hk/components/rate-limit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class UserController
139139
| `decay` | `int` | `60` | 時間窗口(秒) |
140140
| `algorithm` | `Algorithm` | `Algorithm::FIXED_WINDOW` | 算法:fixed_window, sliding_window, token_bucket, leaky_bucket |
141141
| `pool` | `?string` | `null` | 使用的 Redis 連接池 |
142-
| `response` | `string` | `'Too Many Attempts.'` | 超出限流時的自定義響應 |
142+
| `response` | `string` | `'Too Many Attempts, Please try again in %d seconds.'` | 超出限流時的自定義響應 |
143143
| `responseCode` | `int` | `429` | 超出限流時的 HTTP 狀態碼 |
144144

145145
### 使用 AutoSort 實現多限流規則智能排序

docs/zh-tw/components/rate-limit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class UserController
139139
| `decay` | `int` | `60` | 時間視窗(秒) |
140140
| `algorithm` | `Algorithm` | `Algorithm::FIXED_WINDOW` | 演算法:fixed_window, sliding_window, token_bucket, leaky_bucket |
141141
| `pool` | `?string` | `null` | 使用的 Redis 連線池 |
142-
| `response` | `string` | `'Too Many Attempts.'` | 超出限流時的自定義響應 |
142+
| `response` | `string` | `'Too Many Attempts, Please try again in %d seconds.'` | 超出限流時的自定義響應 |
143143
| `responseCode` | `int` | `429` | 超出限流時的 HTTP 狀態碼 |
144144

145145
### 使用 AutoSort 實現多限流規則智慧排序

0 commit comments

Comments
 (0)