Chore: adds buffersize to ReplaySubject (#36286)

pull/36301/head
Hugo Häggmark 4 years ago committed by GitHub
parent abb1c10776
commit 3999d670cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/app/features/query/state/DashboardQueryRunner/DashboardQueryRunner.ts

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

Loading…
Cancel
Save