Skip to content

Commit

Permalink
ndb: add subscription callback initializers
Browse files Browse the repository at this point in the history
Signed-off-by: William Casarin <jb55@jb55.com>
  • Loading branch information
jb55 committed Apr 4, 2024
1 parent b549298 commit 3a6dcdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nostrdb/Ndb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class Ndb {
let ok = path.withCString { testdir in
var ok = false
while !ok && mapsize > 1024 * 1024 * 700 {
var cfg = ndb_config(flags: 0, ingester_threads: ingest_threads, mapsize: mapsize, filter_context: nil, ingest_filter: nil)
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)
ok = ndb_init(&ndb_p, testdir, &cfg) != 0
if !ok {
mapsize /= 2
Expand Down

0 comments on commit 3a6dcdc

Please sign in to comment.