From 77afea7470c38f424798833c81a079a107a9b2f6 Mon Sep 17 00:00:00 2001 From: zhiyu1998 Date: Tue, 11 Apr 2023 13:45:13 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E5=8A=A0=E5=85=A5=E9=99=90?= =?UTF-8?q?=E6=B5=81=E7=AE=97=E6=B3=95=EF=BC=8C=E9=99=90=E5=88=B6=E6=90=9C?= =?UTF-8?q?=E4=B9=A6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/token-bucket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/token-bucket.js b/utils/token-bucket.js index 61c59b7..9acc3a1 100644 --- a/utils/token-bucket.js +++ b/utils/token-bucket.js @@ -51,7 +51,7 @@ export default class TokenBucket { this.capacity = newCapacity; this.tokens = newCapacity; } else { - throw new Error('New capacity cannot be less than current tokens'); + throw new Error('分配少于当前的容量!'); } } } \ No newline at end of file