fix: レートリミットのfactorが二回適用されて二乗の効果がある問題を修正
This commit is contained in:
parent
e77bcf5ff7
commit
d8941558c3
2 changed files with 2 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ export class RateLimiterService {
|
|||
if (limitation.duration != null && limitation.max != null) {
|
||||
const info = await this.checkLimiter({
|
||||
id: `${actor}:${limitation.key}`,
|
||||
duration: limitation.duration * factor,
|
||||
duration: limitation.duration,
|
||||
max: limitation.max / factor,
|
||||
db: this.redisClient,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue