mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 07:02:12 +08:00
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:
@ -120,6 +120,8 @@ func (p *pollingNotifier) poller(ctx context.Context, since groupResourceRV, str
|
||||
|
||||
for {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
case <-p.done:
|
||||
return
|
||||
case <-t.C:
|
||||
|
Reference in New Issue
Block a user