mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-08 16:48:51 +00:00
fix publishing to multiple relays.
This commit is contained in:
3
event.go
3
event.go
@@ -123,7 +123,6 @@ example:
|
|||||||
doAuth := c.Bool("auth")
|
doAuth := c.Bool("auth")
|
||||||
|
|
||||||
// then process input and generate events
|
// then process input and generate events
|
||||||
nextline:
|
|
||||||
for stdinEvent := range getStdinLinesOrBlank() {
|
for stdinEvent := range getStdinLinesOrBlank() {
|
||||||
evt := nostr.Event{
|
evt := nostr.Event{
|
||||||
Tags: make(nostr.Tags, 0, 3),
|
Tags: make(nostr.Tags, 0, 3),
|
||||||
@@ -233,7 +232,7 @@ example:
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
// published fine
|
// published fine
|
||||||
log("success.\n")
|
log("success.\n")
|
||||||
continue nextline
|
continue // continue to next relay
|
||||||
}
|
}
|
||||||
|
|
||||||
// error publishing
|
// error publishing
|
||||||
|
|||||||
Reference in New Issue
Block a user