Skip to content

Commit

Permalink
Start pollEsNodesVersion immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolf committed Jan 30, 2020
1 parent c4c3cd3 commit 91e0256
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* that defined in Kibana's package.json.
*/

import { interval } from 'rxjs';
import { timer } from 'rxjs';
import { map, switchMap, distinctUntilChanged, catchError, startWith } from 'rxjs/operators';
import {
esVersionCompatibleWithKibana,
Expand Down Expand Up @@ -136,7 +136,7 @@ export const pollEsNodesVersion = ({
}: PollEsNodesVersionOptions) => {
log.debug('Checking Elasticsearch version');

return interval(healthCheckInterval).pipe(
return timer(0, healthCheckInterval).pipe(
switchMap(() => {
return callWithInternalUser('nodes.info', {
filterPath: ['nodes.*.version', 'nodes.*.http.publish_address', 'nodes.*.ip'],
Expand Down

0 comments on commit 91e0256

Please sign in to comment.