mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
fix(connectStream): add FILTER_LIMIT in filters
This commit is contained in:
parent
bdd3b2224e
commit
701049d931
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ function connectStream(socket: WebSocket) {
|
|||
send(['EOSE', subId]);
|
||||
|
||||
try {
|
||||
for await (const msg of pubsub.req(filters, { signal: controller.signal })) {
|
||||
for await (const msg of pubsub.req(filters.concat({ limit: FILTER_LIMIT }), { signal: controller.signal })) {
|
||||
if (msg[0] === 'EVENT') {
|
||||
send(['EVENT', subId, msg[2]]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue