commit e302bf37fa5a6dff2d377e106c456f889f7eb10d
parent a45f4d3087aa70d86ece6ec3465c649971e1eb4d
Author: William Casarin <jb55@jb55.com>
Date: Fri, 5 Jan 2024 21:37:34 -0800
nostrdb/ndb: add inital query command
still very early, but works for kinds!
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nostrdb/src/nostrdb.c b/nostrdb/src/nostrdb.c
@@ -1870,7 +1870,7 @@ static int ndb_ingester_process_event(secp256k1_context *ctx,
if ((int)note_size == -42) {
// we already have this!
- ndb_debug("already have id??\n");
+ //ndb_debug("already have id??\n");
goto cleanup;
} else if (note_size == 0) {
ndb_debug("failed to parse '%.*s'\n", ev->len, ev->json);
@@ -2186,7 +2186,7 @@ void *ndb_get_note_meta(struct ndb_txn *txn, const unsigned char *id, size_t *le
k.mv_size = 32;
if (mdb_get(txn->mdb_txn, txn->lmdb->dbs[NDB_DB_META], &k, &v)) {
- ndb_debug("ndb_get_note_meta: mdb_get note failed\n");
+ //ndb_debug("ndb_get_note_meta: mdb_get note failed\n");
return NULL;
}