nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit 0e2e18d12d7792e4b9cf47bf05b3add2fa2dc6f5
parent db172a14c3251abf44be4d924397b6e9e577866f
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 23 Mar 2025 18:41:45 -0700

fix build on macos

Diffstat:
Msrc/nostrdb.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nostrdb.c b/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,