1
0
mirror of git://jb55.com/damus synced 2024-10-04 19:00:42 +00:00

nostrdb/debug: fix some debug-mode compile issues

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin 2023-11-29 12:03:50 -08:00
parent 8446db7cbc
commit fa0d5e7d03

View File

@ -2329,7 +2329,7 @@ static int ndb_fulltext_word_writer(void *ctx,
if (!ndb_write_word_to_index(wctx->txn, word, word_len, words,
wctx->note->created_at, wctx->note_id)) {
// too big to write this one, just skip it
ndb_debug(stderr, "failed to write word '%.*s' to index\n", word_len, word);
ndb_debug("failed to write word '%.*s' to index\n", word_len, word);
return 0;
}
@ -3236,7 +3236,9 @@ int _ndb_process_events(struct ndb *ndb, const char *ldjson, size_t json_len, in
#endif
}
#if DEBUG
ndb_debug("ndb_process_events: processed %d events\n", processed);
#endif
return 1;
}