Skip to content
Snippets Groups Projects
Commit 17b6c1b3 authored by dakkar's avatar dakkar
Browse files

tell the linter to shut up, this time

parent 1b5bedc1
No related branches found
No related tags found
2 merge requests!620Bump version,!603thunk the min/max promises
Pipeline #1042 passed with stage
in 21 minutes and 50 seconds
......@@ -37,7 +37,12 @@ export class RateLimiterService {
return Promise.resolve();
}
// those lines with the "wrong" brace style / indentation are
// done that way so that the *other* lines stay identical to
// Misskey, simplifying merges
// Short-term limit
// eslint-disable-next-line brace-style
const minP = () => { return new Promise<void>((ok, reject) => {
const minIntervalLimiter = new Limiter({
id: `${actor}:${limitation.key}:min`,
......@@ -63,9 +68,11 @@ export class RateLimiterService {
}
}
});
}) };
// eslint-disable-next-line brace-style
}); };
// Long term limit
// eslint-disable-next-line brace-style
const maxP = () => { return new Promise<void>((ok, reject) => {
const limiter = new Limiter({
id: `${actor}:${limitation.key}`,
......@@ -87,7 +94,8 @@ export class RateLimiterService {
return ok();
}
});
}) };
// eslint-disable-next-line brace-style
}); };
const hasShortTermLimit = typeof limitation.minInterval === 'number';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment