Skip to content

Commit

Permalink
Merge pull request #1943 from w3f/will-telemetry-timeout
Browse files Browse the repository at this point in the history
Adjust Telemetry Timeout
  • Loading branch information
wpank authored Aug 27, 2022
2 parents 99b43af + 2f428ba commit f51c799
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion charts/otv-backend/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: 1K Validators Backend
name: otv-backend
version: v2.6.40
version: v2.6.41
apiVersion: v2
2 changes: 1 addition & 1 deletion charts/otv-backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resources:

image:
repo: web3f/otv-backend
tag: v2.6.40
tag: v2.6.41

certificate:
enabled: true
Expand Down
4 changes: 2 additions & 2 deletions helmfile.d/10-otv-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ releases:
namespace: kusama
{{ if eq .Environment.Name "production" }}
chart: w3f/otv-backend
version: v2.6.40
version: v2.6.41
{{ else }}
chart: ../charts/otv-backend
{{ end }}
Expand All @@ -27,7 +27,7 @@ releases:
namespace: polkadot
{{ if eq .Environment.Name "production" }}
chart: w3f/otv-backend
version: v2.6.40
version: v2.6.41
{{ else }}
chart: ../charts/otv-backend
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "1k-validators-be",
"version": "2.6.40",
"version": "2.6.41",
"description": "Services for running the Thousand Validator Program.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 0 additions & 2 deletions src/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,6 @@ export default class Db {
logger.info(`{reportOnline}: no addr sent for ${name}`);
}

// }

const data = await this.candidateModel.findOne({ name });
if (!data) {
// A new node that is not already registered as a candidate.
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { startClearAccumulatedOfflineTimeJob, startMonitorJob } from "./cron";

const isCI = process.env.CI;

const version = "v2.6.40";
const version = "v2.6.41";

const catchAndQuit = async (fn: any) => {
try {
Expand Down
9 changes: 4 additions & 5 deletions src/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export default class TelemetryClient {

const options = {
WebSocket: WS,
connectionTimeout: 1000,
maxRetries: 10,
connectionTimeout: 10000,
maxRetries: 20,
};

this.socket = new ReconnectingWebSocket(this.host, [], options);
Expand All @@ -66,10 +66,9 @@ export default class TelemetryClient {

this.socket.onerror = (err: any) => {
logger.info(
`Could not connect to substrate-telemetry on host ${
this.host
}: ${JSON.stringify(err.toString())}`
`Could not connect to substrate-telemetry on host ${this.host}: `
);
logger.info(err);
reject();
};

Expand Down

0 comments on commit f51c799

Please sign in to comment.