mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
refactor(api): tidy the api and shared packages (#2733)
This commit is contained in:
1 parent
580401d2dc
commit
5afbf67a70
333 files changed
+10180
-7910
No files matched your search
@@ -88,9 +88,8 @@ export class RateLimitService implements IRateLimitService {
|
||||
if (identifierPrefix.length === 0) {
|
||||
throw new Error('identifierPrefix must be non-empty');
|
||||
}
|
||||
const sentinelKey = this.keyFactory.getIdentifierKey(`${identifierPrefix}\x00`);
|
||||
const keyPrefix = sentinelKey.slice(0, -1);
|
||||
const pattern = `${keyPrefix}*`;
|
||||
const keyPrefix = this.keyFactory.getIdentifierKey(identifierPrefix);
|
||||
const pattern = `${keyPrefix.replace(/[\\*?[\]]/g, '\\$&')}*`;
|
||||
let totalDeleted = 0;
|
||||
const batchSize = 256;
|
||||
while (true) {
|
||||
|
||||
Reference in new issue
Block a user