nostrdb/subs: subs and monitor cleanup

We need to free these resources when we're done with them.

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-01-03 14:04:23 -08:00
committed by Daniel D’Aquino
parent f03d8a5ac9
commit 81d65cd5bf
2 changed files with 31 additions and 5 deletions

View File

@@ -471,7 +471,7 @@ int ndb_filter_matches(struct ndb_filter *, struct ndb_note *);
void ndb_filter_reset(struct ndb_filter *);
void ndb_filter_end_field(struct ndb_filter *);
int ndb_filter_group_add(struct ndb_filter_group *group, struct ndb_filter *f);
void ndb_filter_free(struct ndb_filter *);
void ndb_filter_destroy(struct ndb_filter *);
// SUBSCRIPTIONS
uint64_t ndb_subscribe(struct ndb *, struct ndb_filter_group *);