Chore: adds buffersize to ReplaySubject (#36286)

This commit is contained in:
Hugo Häggmark 2021-06-30 09:05:04 +02:00 committed by GitHub
parent abb1c10776
commit 3999d670cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));