diff --git a/api/package-lock.json b/api/package-lock.json index a4eb25b98..238c1610b 100644 --- a/api/package-lock.json +++ b/api/package-lock.json @@ -1,12 +1,12 @@ { "name": "explorer-api", - "version": "3.3.10-rc.1", + "version": "3.3.10-rc.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "explorer-api", - "version": "3.3.10-rc.1", + "version": "3.3.10-rc.2", "license": "Apache-2.0", "dependencies": { "@google-cloud/logging-winston": "^6.0.0", diff --git a/api/package.json b/api/package.json index 6dd7e4ae3..dc1c930b5 100644 --- a/api/package.json +++ b/api/package.json @@ -1,7 +1,7 @@ { "name": "explorer-api", "description": "API for Tangle Explorer", - "version": "3.3.10-rc.1", + "version": "3.3.10-rc.2", "author": "Martyn Janes ", "repository": { "type": "git", diff --git a/api/src/services/stardust/influx/influxDbClient.ts b/api/src/services/stardust/influx/influxDbClient.ts index 05cef55d8..7e07e9421 100644 --- a/api/src/services/stardust/influx/influxDbClient.ts +++ b/api/src/services/stardust/influx/influxDbClient.ts @@ -1,4 +1,4 @@ -import { INanoDate, InfluxDB, IPingStats, IResults, toNanoDate } from "influx"; +import { INanoDate, InfluxDB, IResults, toNanoDate } from "influx"; import moment from "moment"; import cron from "node-cron"; import { @@ -134,7 +134,7 @@ export abstract class InfluxDbClient { /** * Build a new client instance asynchronously. - * @returns Boolean representing that the client ping succeeded. + * @returns Boolean representing that the client was initialised. */ public async buildClient(): Promise { const protocol = this._network.analyticsInfluxDbProtocol || "https"; @@ -157,27 +157,11 @@ export abstract class InfluxDbClient { const influxDbClient = new InfluxDB({ protocol, port, host, database, username, password, options }); - return influxDbClient - .ping(1500) - .then((pingResults: IPingStats[]) => { - if (pingResults.length > 0) { - const anyHostIsOnline = pingResults.some((ping) => ping.online); + this._client = influxDbClient; + this.setupDataCollection(); + logger.info(`[InfluxDb] Client started for "${network}"...`); - if (anyHostIsOnline) { - logger.info(`[InfluxDb] Client started for "${network}"...`); - this._client = influxDbClient; - this.setupDataCollection(); - } - - return anyHostIsOnline; - } - - return false; - }) - .catch((e) => { - logger.verbose(`[InfluxDb] Ping failed for "${network}". ${e}`); - return false; - }); + return true; } logger.warn(`[InfluxDb] Configuration not found for "${network}".`); diff --git a/client/package-lock.json b/client/package-lock.json index d47b00ac1..7244c32f2 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -1,12 +1,12 @@ { "name": "explorer-client", - "version": "3.3.10-rc.1", + "version": "3.3.10-rc.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "explorer-client", - "version": "3.3.10-rc.1", + "version": "3.3.10-rc.2", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { diff --git a/client/package.json b/client/package.json index 1c6e6df63..9f144d63e 100644 --- a/client/package.json +++ b/client/package.json @@ -1,7 +1,7 @@ { "name": "explorer-client", "description": "Tangle Explorer UI", - "version": "3.3.10-rc.1", + "version": "3.3.10-rc.2", "author": "Martyn Janes ", "type": "module", "repository": { diff --git a/package.json b/package.json index 82a9646c5..321d148a0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "explorer", "description": "Tangle Explorer", - "version": "3.3.10-rc.1", + "version": "3.3.10-rc.2", "scripts": { "setup:client": "cd client && npm install && npm run postinstall", "setup:api": "cd api && npm install && npm run build-compile && npm run build-config",