changed nostr relays from examples

This commit is contained in:
leorighi
2024-04-11 19:23:38 -03:00
committed by fiatjaf_
parent 907cfd7846
commit 87390c11ac
2 changed files with 4 additions and 4 deletions

View File

@@ -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 {