mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-04-01 00:18:12 +02:00
send notices on a goroutine.
This commit is contained in:
parent
7c1ab3e627
commit
a0d9f3a392
4
relay.go
4
relay.go
@ -123,7 +123,9 @@ func (r *Relay) Connect(ctx context.Context) error {
|
||||
case "NOTICE":
|
||||
var content string
|
||||
json.Unmarshal(jsonMessage[1], &content)
|
||||
r.Notices <- content
|
||||
go func() {
|
||||
r.Notices <- content
|
||||
}()
|
||||
case "AUTH":
|
||||
var challenge string
|
||||
json.Unmarshal(jsonMessage[1], &challenge)
|
||||
|
Loading…
x
Reference in New Issue
Block a user