damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 0c483bb55ad4d7d5e721647b30705b99cc70fd79
parent ddd30054e8f9fe6745c987b70595de5b9b2b3c08
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 31 Aug 2024 06:48:10 -0700

nostrdb: print search keys to stdout

otherwise it's way too annoying to grep

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

Diffstat:
Mnostrdb/src/print_util.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nostrdb/src/print_util.h b/nostrdb/src/print_util.h @@ -3,7 +3,7 @@ static void ndb_print_text_search_key(struct ndb_text_search_key *key) { - fprintf(stderr,"K<'%.*s' %" PRIu64 " %" PRIu64 " note_id:%" PRIu64 ">", key->str_len, key->str, + printf("K<'%.*s' %" PRIu64 " %" PRIu64 " note_id:%" PRIu64 ">", (int)key->str_len, key->str, key->word_index, key->timestamp, key->note_id);