unistore: close event stream on context cancelation (#101293)

* add tests for broacaster

* fix sql notifier not closing the stream

* fix sql notifier not closing the stream

* close sub

* fix broadcaster test

* fix broadcaster test

* suggestion
This commit is contained in:
Georges Chaudy
2025-02-25 08:28:31 -08:00
committed by GitHub
parent c5250311fc
commit 53e91fd5e8
5 changed files with 86 additions and 6 deletions
+1 -4
View File
@@ -919,10 +919,7 @@ func (s *server) initWatcher() error {
return err
}
go func() {
for {
// pipe all events
v := <-events
for v := range events {
if v == nil {
s.log.Error("received nil event")
continue