evenstore/mmm: fix wrong limit being read in queries.
This commit is contained in:
@@ -96,8 +96,7 @@ func (il *IndexingLayer) QueryEvents(filter nostr.Filter, maxLimit int) iter.Seq
|
|||||||
il.lmdbEnv.View(func(txn *lmdb.Txn) error {
|
il.lmdbEnv.View(func(txn *lmdb.Txn) error {
|
||||||
txn.RawRead = true
|
txn.RawRead = true
|
||||||
|
|
||||||
results, err := il.query(txn, filter, filter.Limit)
|
results, err := il.query(txn, filter, maxLimit)
|
||||||
|
|
||||||
for _, ie := range results {
|
for _, ie := range results {
|
||||||
if !yield(ie.Event) {
|
if !yield(ie.Event) {
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user