nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit 73745d029e2b4384c587ad4f3ea41bfcccd08eba
parent 17a58be475c89296574651140ab8af6cfd5011e2
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 13 Dec 2024 20:01:33 -0800

ids: fix typo in ndb_query_plan_execute_ids

We should be specifying that we've matched the id here, not authors. Not
that this would have any effect.. but still.

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/nostrdb.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nostrdb.c b/src/nostrdb.c @@ -3079,7 +3079,7 @@ static int ndb_query_plan_execute_ids(struct ndb_txn *txn, note_id = *(uint64_t*)v.mv_data; if (memcmp(id, ptsid->id, 32) == 0) - matched |= 1 << NDB_FILTER_AUTHORS; + matched |= 1 << NDB_FILTER_IDS; else continue;