22 lines
392 B
TypeScript
22 lines
392 B
TypeScript
|
import { RateLimiterMemory } from "rate-limiter-flexible"
|
||
|
|
||
|
export const saveFileRL = new RateLimiterMemory({
|
||
|
points: 3,
|
||
|
duration: 1,
|
||
|
})
|
||
|
|
||
|
export const createFileRL = new RateLimiterMemory({
|
||
|
points: 3,
|
||
|
duration: 1,
|
||
|
})
|
||
|
|
||
|
export const renameFileRL = new RateLimiterMemory({
|
||
|
points: 3,
|
||
|
duration: 1,
|
||
|
})
|
||
|
|
||
|
export const deleteFileRL = new RateLimiterMemory({
|
||
|
points: 3,
|
||
|
duration: 1,
|
||
|
})
|