From 20255198fdf5c322aac07d8093145f4bd2b1390e Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 16 Dec 2024 13:48:23 -0800 Subject: [PATCH] nostrdb: bug: add missing break statement probably harmless but it writes the note twice... Signed-off-by: William Casarin --- nostrdb/src/nostrdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nostrdb/src/nostrdb.c b/nostrdb/src/nostrdb.c index 7b52340a..051c59f7 100644 --- a/nostrdb/src/nostrdb.c +++ b/nostrdb/src/nostrdb.c @@ -4415,6 +4415,7 @@ static void *ndb_writer_thread(void *data) } else { ndb_debug("failed to write note\n"); } + break; case NDB_WRITER_NOTE: note_nkey = ndb_write_note(&txn, &msg->note, scratch,