khatru: fix eose waitgroup count for multiple filters.
This commit is contained in:
+1
-1
@@ -273,7 +273,7 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
case *nostr.ReqEnvelope:
|
case *nostr.ReqEnvelope:
|
||||||
eose := sync.WaitGroup{}
|
eose := sync.WaitGroup{}
|
||||||
eose.Add(1)
|
eose.Add(len(env.Filters))
|
||||||
|
|
||||||
// a context just for the "stored events" request handler
|
// a context just for the "stored events" request handler
|
||||||
reqCtx, cancelReqCtx := context.WithCancelCause(ctx)
|
reqCtx, cancelReqCtx := context.WithCancelCause(ctx)
|
||||||
|
|||||||
Reference in New Issue
Block a user