mirror of
https://github.com/aljazceru/khatru.git
synced 2026-01-10 08:54:22 +01:00
returning a nil chan from QueryEvents causes an immediate eose from that source.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user