mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-08 13:04:34 +00:00
use bucket rate limit for featured timeline
This commit is contained in:
parent
2294c22e35
commit
f6eb3148f3
1 changed files with 4 additions and 3 deletions
|
@ -30,10 +30,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// 10 calls per 5 seconds
|
// Burst of 10 calls to handle tab reload, then 4/second for refresh
|
||||||
limit: {
|
limit: {
|
||||||
duration: 1000 * 5,
|
type: 'bucket',
|
||||||
max: 10,
|
size: 10,
|
||||||
|
dripSize: 4,
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue