diff --git a/nip46/signer.go b/nip46/signer.go index 2031940..06edd69 100644 --- a/nip46/signer.go +++ b/nip46/signer.go @@ -93,7 +93,7 @@ func NewSigner(secretKey string) Signer { return Signer{secretKey: secretKey} } -func (p *Signer) AddRelay(url string, read bool, write bool) { +func (p *Signer) AddRelayToAdvertise(url string, read bool, write bool) { p.RelaysToAdvertise[url] = relayReadWrite{read, write} } diff --git a/subscription_test.go b/subscription_test.go index 0114039..e127889 100644 --- a/subscription_test.go +++ b/subscription_test.go @@ -8,7 +8,7 @@ import ( "time" ) -const RELAY = "wss://relay.nostr.bg" +const RELAY = "wss://nos.lol" // test if we can fetch a couple of random events func TestSubscribe(t *testing.T) {