mirror of
https://github.com/fiatjaf/nak.git
synced 2024-10-30 09:09:08 -04:00
print the event before sending it to relays.
This commit is contained in:
parent
88acf8ccda
commit
9d4f1ec852
1
event.go
1
event.go
|
@ -117,6 +117,7 @@ standalone:
|
||||||
|
|
||||||
relays := c.Args().Slice()
|
relays := c.Args().Slice()
|
||||||
if len(relays) > 0 {
|
if len(relays) > 0 {
|
||||||
|
fmt.Println(evt.String())
|
||||||
for _, url := range relays {
|
for _, url := range relays {
|
||||||
fmt.Fprintf(os.Stderr, "publishing to %s... ", url)
|
fmt.Fprintf(os.Stderr, "publishing to %s... ", url)
|
||||||
if relay, err := nostr.RelayConnect(c.Context, url); err != nil {
|
if relay, err := nostr.RelayConnect(c.Context, url); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user