Chore: adds buffersize to ReplaySubject (#36286) (#36287)

(cherry picked from commit 3999d670cf)

Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2021-06-30 09:27:56 +02:00
committed by GitHub
co-authored by Hugo Häggmark
parent d478184e47
commit d15a70371f
@@ -39,7 +39,7 @@ class DashboardQueryRunnerImpl implements DashboardQueryRunner {
this.cancel = this.cancel.bind(this);
this.destroy = this.destroy.bind(this);
this.executeRun = this.executeRun.bind(this);
this.results = new ReplaySubject<DashboardQueryRunnerWorkerResult>();
this.results = new ReplaySubject<DashboardQueryRunnerWorkerResult>(1);
this.runs = new Subject<DashboardQueryRunnerOptions>();
this.cancellationStream = new Subject<any>();
this.runsSubscription = this.runs.subscribe((options) => this.executeRun(options));