chore: code formatting
This commit is contained in:
@@ -81,7 +81,7 @@ export default async function({sandbox = false} = {}) {
|
|||||||
//Rate limiter middleware
|
//Rate limiter middleware
|
||||||
if (ratelimiter) {
|
if (ratelimiter) {
|
||||||
app.set("trust proxy", 1)
|
app.set("trust proxy", 1)
|
||||||
const disabled = (ratelimiter.max === 0)
|
const disabled = ratelimiter.max === 0
|
||||||
if (disabled)
|
if (disabled)
|
||||||
delete ratelimiter.max
|
delete ratelimiter.max
|
||||||
middlewares.push(ratelimit({
|
middlewares.push(ratelimit({
|
||||||
|
|||||||
Reference in New Issue
Block a user