nostrdb

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

commit 1b29eca42790822ad98129952d73bcd8671aaf7a
parent 6e984d19bdde6d5ea1253f67984b4437b2b3fd85
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 14 Dec 2023 12:10:35 -0800

build: fix constness on config pointer in ingester thread

otherwise build fails

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

diff --git a/nostrdb.c b/nostrdb.c @@ -2924,7 +2924,7 @@ static int ndb_writer_init(struct ndb_writer *writer, struct ndb_lmdb *lmdb) // initialize the ingester queue and then spawn the thread static int ndb_ingester_init(struct ndb_ingester *ingester, struct ndb_writer *writer, - struct ndb_config *config) + const struct ndb_config *config) { int elem_size, num_elems; static struct ndb_ingester_msg quit_msg = { .type = NDB_INGEST_QUIT };