nostrdb: fix build on macos

This commit is contained in:
William Casarin
2025-03-23 18:41:45 -07:00
committed by Daniel D’Aquino
parent c728210be8
commit 9cff8608f6

View File

@@ -5301,6 +5301,7 @@ static void *ndb_writer_thread(void *data)
uint64_t note_nkey; uint64_t note_nkey;
struct ndb_txn txn; struct ndb_txn txn;
unsigned char *scratch; unsigned char *scratch;
struct ndb_relay_kind_key relay_key;
// 2MB scratch buffer for parsing note content // 2MB scratch buffer for parsing note content
scratch = malloc(writer->scratch_size); scratch = malloc(writer->scratch_size);
@@ -5380,7 +5381,6 @@ static void *ndb_writer_thread(void *data)
} }
break; break;
case NDB_WRITER_NOTE_RELAY: case NDB_WRITER_NOTE_RELAY:
struct ndb_relay_kind_key relay_key;
if (ndb_relay_kind_key_init(&relay_key, if (ndb_relay_kind_key_init(&relay_key,
msg->note_relay.note_key, msg->note_relay.note_key,
msg->note_relay.kind, msg->note_relay.kind,