Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-02-13 13:57:50 -08:00
committed by Daniel D’Aquino
parent eb99584501
commit f8185d0ca5
7 changed files with 116 additions and 154 deletions

View File

@@ -112,7 +112,7 @@ class Ndb {
while !ok && mapsize > 1024 * 1024 * 700 {
var cfg = ndb_config(flags: 0, ingester_threads: ingest_threads, mapsize: mapsize, filter_context: nil, ingest_filter: nil, sub_cb_ctx: nil, sub_cb: nil)
let res = ndb_init(&ndb_p, testdir, &cfg);
let ok = res != 0;
ok = res != 0;
if !ok {
Log.error("ndb_init failed: %d, reducing mapsize from %d to %d", for: .storage, res, mapsize, mapsize / 2)
mapsize /= 2

View File

@@ -390,7 +390,7 @@ struct bech32_nrelay {
struct ndb_str_block relay;
};
struct nostr_bech32 {
typedef struct nostr_bech32 {
enum nostr_bech32_type type;
union {
@@ -402,7 +402,7 @@ struct nostr_bech32 {
struct bech32_naddr naddr;
struct bech32_nrelay nrelay;
};
};
} nostr_bech32_t;
struct ndb_mention_bech32_block {