nostrdb: migrations: make migrations asyncronous
This also seems to fix some issues with older migrations. Fixes: https://github.com/damus-io/nostrdb/issues/58 Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
05baba9c03
commit
289a8e262a
@@ -460,7 +460,7 @@ int ndb_note_verify(void *secp_ctx, unsigned char pubkey[32], unsigned char id[3
|
||||
|
||||
// NDB
|
||||
int ndb_init(struct ndb **ndb, const char *dbdir, const struct ndb_config *);
|
||||
int ndb_db_version(struct ndb *ndb);
|
||||
int ndb_db_version(struct ndb_txn *txn);
|
||||
int ndb_process_event(struct ndb *, const char *json, int len);
|
||||
int ndb_process_events(struct ndb *, const char *ldjson, size_t len);
|
||||
#ifndef _WIN32
|
||||
|
||||
Reference in New Issue
Block a user