From 9cff8608f661c05767a7d8d128c3a554e572ac25 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sun, 23 Mar 2025 18:41:45 -0700 Subject: [PATCH] nostrdb: fix build on macos --- nostrdb/src/nostrdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nostrdb/src/nostrdb.c b/nostrdb/src/nostrdb.c index 30f86876..4f409cf0 100644 --- a/nostrdb/src/nostrdb.c +++ b/nostrdb/src/nostrdb.c @@ -5301,6 +5301,7 @@ static void *ndb_writer_thread(void *data) uint64_t note_nkey; struct ndb_txn txn; unsigned char *scratch; + struct ndb_relay_kind_key relay_key; // 2MB scratch buffer for parsing note content scratch = malloc(writer->scratch_size); @@ -5380,7 +5381,6 @@ static void *ndb_writer_thread(void *data) } break; case NDB_WRITER_NOTE_RELAY: - struct ndb_relay_kind_key relay_key; if (ndb_relay_kind_key_init(&relay_key, msg->note_relay.note_key, msg->note_relay.kind,