summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/RateLimiterService.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* lintsyuilo2025-05-111-3/+1
|
* fix: RateLimiterService (#13997)anatawa122025-05-111-61/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix rate limit check never ends * fix: long term / short term limitがないときでもそれぞれ用のnew Limiterとlimiter.getが呼ばれる問題 * refactor: wrap ratelimiter with promise * refactor: reimplement max/min with async * refactor: reimplement limit with async * refactor: do not check long term limit inside min * refactor: check if there is rate limit inside min/max function * refactor: remove unnecessary return in min/max function * refactor: remove unnecessary max/min function * refactor: return rate limit instead of throwing an object * fix: レートリミットのfactorが二回適用されて二乗の効果がある問題を修正 * fix lint error --------- Co-authored-by: Kisaragi <48310258+KisaragiEffective@users.noreply.github.com> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com> Co-authored-by: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com>
* fix rate limit check never ends (#13994)anatawa122024-06-151-1/+1
|
* feat(backend): report `Retry-After` if client hit rate limit (#13949)Kisaragi2024-06-131-17/+19
| | | | | * feat(backend): report `Retry-After` if client hit rate limit * refactor(backend): fix lint error
* (re) update SPDX-FileCopyrightTexttamaina2024-02-131-1/+1
| | | | Fix #13290
* Revert "update SPDX-FileCopyrightText"tamaina2024-02-131-1/+1
| | | | This reverts commit 9b5aeb76d8c9372d67058c512597152b6bf222f2.
* update SPDX-FileCopyrightTextsyuilo2024-02-121-1/+1
|
* chore: ↵Shun Sakai2023-07-271-0/+5
| | | | | | | | | | | | | | 著作権とライセンスについての情報を各ファイルに追加する (#11348) * chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* cleanup: trim trailing whitespace (#11136)okayurisotto2023-07-081-10/+10
| | | | | | | | | * cleanup: trim trailing whitespace * update(`.editorconfig`) --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* fix typessyuilo2023-04-141-1/+1
|
* refactor: fix typessyuilo2023-02-091-3/+3
|
* ロールでレートリミットを調整できるようにsyuilo2023-01-151-4/+4
| | | | Resolve #9584
* enhance(server): productionじゃない限りレートリミットを無効にsyuilo2023-01-011-3/+8
|
* refactor: introduce bindThis decorator to bind this automaticalysyuilo2022-12-041-0/+2
|
* testsyuilo2022-09-191-4/+4
|
* refactor(backend): refactor loggersyuilo2022-09-181-5/+9
|
* なんかもうめっちゃ変えたsyuilo2022-09-181-0/+89