nostrdb

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

commit 6cc08c8526ed30d2f4bb63293711328f2cffa7b5
parent c5b81946d8a8fc624db0df55f617b1295d227940
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 28 Jun 2024 15:35:43 -0500

fix bug

Diffstat:
Mndb.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ndb.c b/ndb.c @@ -231,8 +231,10 @@ int main(int argc, char *argv[]) for (i = 0; argc && i < 1000; i++) { if (!strcmp(argv[0], "-k")) { - if (current_field != NDB_FILTER_KINDS) + if (current_field != NDB_FILTER_KINDS) { + ndb_filter_end_field(f); ndb_filter_start_field(f, NDB_FILTER_KINDS); + } current_field = NDB_FILTER_KINDS; ndb_filter_add_int_element(f, atoll(argv[1])); argv += 2;