nostrdb/stream: actually use file pointer in stream api
Right now it's accidently hardcoded.
Fixes: 8376e5bca05c ("add "import -"")
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
cc95d5df6e
commit
4e9583ef54
@@ -3250,7 +3250,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);
|
||||
|
||||
Reference in New Issue
Block a user