khatru/blossom: fix yield exiting on eventstorewrapper.

This commit is contained in:
fiatjaf
2026-01-16 07:20:57 -03:00
parent 78f6509882
commit 8b9e2ea951

View File

@@ -52,7 +52,9 @@ func (es EventStoreBlobIndexWrapper) List(ctx context.Context, pubkey nostr.PubK
Authors: []nostr.PubKey{pubkey},
Kinds: []nostr.Kind{24242},
}, 1000) {
yield(es.parseEvent(evt))
if !yield(es.parseEvent(evt)) {
return
}
}
}
}