From 0fe8e808a96128ac6dae8f014c3f846cf423b811 Mon Sep 17 00:00:00 2001 From: leorighi Date: Thu, 11 Apr 2024 19:23:38 -0300 Subject: [PATCH] changed nostr relays from examples --- README.md | 4 ++-- example/example.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cd8816a..e1f0d1b 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ func main() { ``` go ctx := context.Background() -relay, err := nostr.RelayConnect(ctx, "wss://nostr.zebedee.cloud") +relay, err := nostr.RelayConnect(ctx, "wss:///relay.stoner.com") if err != nil { panic(err) } @@ -95,7 +95,7 @@ ev.Sign(sk) // publish the event to two relays ctx := context.Background() -for _, url := range []string{"wss://nostr.zebedee.cloud", "wss://nostr-pub.wellorder.net"} { +for _, url := range []string{"wss:///relay.stoner.com", "wss://nostr-pub.wellorder.net"} { relay, err := nostr.RelayConnect(ctx, url) if err != nil { fmt.Println(err) diff --git a/example/example.go b/example/example.go index 55f0786..0e240ac 100644 --- a/example/example.go +++ b/example/example.go @@ -17,7 +17,7 @@ func main() { ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second) // connect to relay - url := "wss://nostr.zebedee.cloud" + url := "wss:///relay.stoner.com" relay, err := nostr.RelayConnect(ctx, url) if err != nil { panic(err) @@ -116,7 +116,7 @@ func main() { } ev.Content = strings.TrimSpace(content) ev.Sign(sk) - for _, url := range []string{"wss://nostr.zebedee.cloud"} { + for _, url := range []string{"wss:///relay.stoner.com"} { ctx := context.WithValue(context.Background(), "url", url) relay, e := nostr.RelayConnect(ctx, url) if e != nil {