From 30dbe2c1c03f3046c7214b1f484a7efd4e4d0c47 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 7 Dec 2023 18:14:26 -0300 Subject: [PATCH] fix handling multiple lines in event (broken in previous commit). --- event.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/event.go b/event.go index 0cb8e70..19ece30 100644 --- a/event.go +++ b/event.go @@ -117,6 +117,7 @@ example: doAuth := c.Bool("auth") // then process input and generate events + nextline: for stdinEvent := range getStdinLinesOrBlank() { evt := nostr.Event{ Tags: make(nostr.Tags, 0, 3), @@ -228,7 +229,7 @@ example: if err == nil { // published fine probably log("%s.\n", status) - goto end + continue nextline } // error publishing @@ -254,7 +255,6 @@ example: } } - end: exitIfLineProcessingError(c) return nil },