mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-29 02:01:02 +02:00
revert accidentally changes
This commit is contained in:
committed by
fiatjaf_
parent
2d7dae3f69
commit
e7e20f3e00
@ -17,8 +17,7 @@ func main() {
|
|||||||
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
|
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
|
||||||
|
|
||||||
// connect to relay
|
// connect to relay
|
||||||
//url := "wss://nostr.zebedee.cloud"
|
url := "wss://nostr.zebedee.cloud"
|
||||||
url := "wss://nostr-relay.nokotaro.com"
|
|
||||||
relay, err := nostr.RelayConnect(ctx, url)
|
relay, err := nostr.RelayConnect(ctx, url)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
@ -117,7 +116,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
ev.Content = strings.TrimSpace(content)
|
ev.Content = strings.TrimSpace(content)
|
||||||
ev.Sign(sk)
|
ev.Sign(sk)
|
||||||
for _, url := range []string{"wss://nostr-relay.nokotaro.com"} {
|
for _, url := range []string{"wss://nostr.zebedee.cloud"} {
|
||||||
ctx := context.WithValue(context.Background(), "url", url)
|
ctx := context.WithValue(context.Background(), "url", url)
|
||||||
relay, e := nostr.RelayConnect(ctx, url)
|
relay, e := nostr.RelayConnect(ctx, url)
|
||||||
if e != nil {
|
if e != nil {
|
||||||
|
Reference in New Issue
Block a user