DittoAPIStore: add limit 0

This commit is contained in:
Alex Gleason 2025-02-22 19:55:58 -06:00
parent 70f0eb3b03
commit f893a81464
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -122,7 +122,7 @@ export class DittoAPIStore implements NRelay {
const { relay } = this.opts;
const { signal } = this.controller;
for await (const msg of relay.req([{}], { signal })) {
for await (const msg of relay.req([{ limit: 0 }], { signal })) {
if (msg[0] === 'EVENT') {
const [, , event] = msg;
await this.handleEvent(event, { signal });