damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit dd78272a5e3183e02f847254b8fca97c2c546885
parent 65be56ba7cc32cc79eefab598c64babec556b950
Author: William Casarin <jb55@jb55.com>
Date:   Sat,  2 Dec 2023 13:43:40 -0800

Ndb: update to use new nostrdb config struct

Diffstat:
Mnostrdb/Ndb.swift | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/nostrdb/Ndb.swift b/nostrdb/Ndb.swift @@ -67,7 +67,8 @@ class Ndb { let ok = path.withCString { testdir in var ok = false while !ok && mapsize > 1024 * 1024 * 700 { - ok = ndb_init(&ndb_p, testdir, mapsize, ingest_threads, 0) != 0 + var cfg = ndb_config(flags: 0, ingester_threads: ingest_threads, mapsize: mapsize, filter_context: nil, ingest_filter: nil) + ok = ndb_init(&ndb_p, testdir, &cfg) != 0 if !ok { mapsize /= 2 }