[Rollups] remove use of custom cluster client (#99623)

This commit is contained in:
Alison Goryachev 2021-05-10 10:19:38 -04:00 committed by GitHub
parent da890fd24c
commit 5f618da802
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,6 @@ import { Observable } from 'rxjs';
import { first } from 'rxjs/operators';
import {
CoreSetup,
ILegacyCustomClusterClient,
Plugin,
Logger,
PluginInitializerContext,
@ -33,7 +32,6 @@ export class RollupPlugin implements Plugin<void, void, any, any> {
private readonly logger: Logger;
private readonly globalConfig$: Observable<SharedGlobalConfig>;
private readonly license: License;
private rollupEsClient?: ILegacyCustomClusterClient;
constructor(initializerContext: PluginInitializerContext) {
this.logger = initializerContext.logger.get();
@ -121,9 +119,5 @@ export class RollupPlugin implements Plugin<void, void, any, any> {
start() {}
stop() {
if (this.rollupEsClient) {
this.rollupEsClient.close();
}
}
stop() {}
}