nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit 759a77f221875121e77ce079fc63e20696a42fd4
parent 8376e5bca05c7a69c30db1eaae2755e2b3a24ae6
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 13 Dec 2023 17:53:46 -0800

stream: actually use file pointer in stream api

Right now it's accidently hardcoded.

Fixes: 8376e5bca05c ("add "import -"")

Diffstat:
Mnostrdb.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nostrdb.c b/nostrdb.c @@ -3242,7 +3242,7 @@ int ndb_process_events_stream(struct ndb *ndb, FILE* fp) size_t len = 0; ssize_t nread; - while ((nread = getline(&line, &len, stdin)) != -1) { + while ((nread = getline(&line, &len, fp)) != -1) { if (line == NULL) break; ndb_process_event(ndb, line, len);