Skip to content

Commit

Permalink
Set ReplaySubject buffer to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdover committed Sep 16, 2020
1 parent f63b6dd commit 88121e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/server/status/routes/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const registerStatusRoute = ({ router, config, metrics, status }: Deps) =
// the plugins status when Kibana starts up so this endpoint responds quickly on first boot.
const combinedStatus$ = new ReplaySubject<
[ServiceStatus<unknown>, CoreStatus, Record<string, ServiceStatus<unknown>>]
>();
>(1);
combineLatest([status.overall$, status.core$, status.plugins$]).subscribe(combinedStatus$);

router.get(
Expand Down

0 comments on commit 88121e4

Please sign in to comment.