mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2025-04-13 09:44:40 +00:00
fix wsmessage rate limit definition
This commit is contained in:
parent
fafb811333
commit
47ea8527fd
1 changed files with 2 additions and 1 deletions
|
@ -160,8 +160,9 @@ export class StreamingApiServerService {
|
|||
// Rather high limit because when catching up at the top of a timeline, the frontend may render many many notes.
|
||||
// Each of which causes a message via `useNoteCapture` to ask for realtime updates of that note.
|
||||
return this.rateLimitThis(limitActor, {
|
||||
type: 'bucket',
|
||||
key: 'wsmessage',
|
||||
max: 4096, // Allow spikes of up to 4096
|
||||
size: 4096, // Allow spikes of up to 4096
|
||||
dripRate: 50, // Then once every 50ms (20/second rate)
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue