From 3999d670cf1184baad25139e08340bba10fd05f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=A4ggmark?= Date: Wed, 30 Jun 2021 09:05:04 +0200 Subject: [PATCH] Chore: adds buffersize to ReplaySubject (#36286) --- .../query/state/DashboardQueryRunner/DashboardQueryRunner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/query/state/DashboardQueryRunner/DashboardQueryRunner.ts b/public/app/features/query/state/DashboardQueryRunner/DashboardQueryRunner.ts index 1de8b6f57fb..31da2b3e68a 100644 --- a/public/app/features/query/state/DashboardQueryRunner/DashboardQueryRunner.ts +++ b/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(); + this.results = new ReplaySubject(1); this.runs = new Subject(); this.cancellationStream = new Subject(); this.runsSubscription = this.runs.subscribe((options) => this.executeRun(options));