returning a nil chan from QueryEvents causes an immediate eose from that source.

This commit is contained in:
fiatjaf
2024-05-29 07:51:48 -03:00
parent 746f030f46
commit 2a8b704299

View File

@@ -41,6 +41,9 @@ func (rl *Relay) handleRequest(ctx context.Context, id string, eose *sync.WaitGr
ws.WriteJSON(nostr.NoticeEnvelope(err.Error()))
eose.Done()
continue
} else if ch == nil {
eose.Done()
continue
}
go func(ch chan *nostr.Event) {