Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 102236a

Browse files
will pankiewiczwill pankiewicz
authored andcommitted
bump version to v3.1.10
1 parent d35be02 commit 102236a

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

packages/common/src/chaindata/chaindata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export const handleError = async (chaindata, e, functionName: string) => {
361361
apiLabel,
362362
);
363363
try {
364-
await chaindata.handler.initiateConnection();
364+
await chaindata.handler.setAPI();
365365
} catch (error) {
366366
logger.error(
367367
`Error while switching to a different endpoint: ${error}`,

packages/common/test/nominator/nominator.int.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ describe("Nominator Integration Test", () => {
179179

180180
beforeEach(async () => {
181181
handler = new ApiHandler(["wss://kusama-rpc.polkadot.io"]);
182-
await handler.initiateConnection();
182+
await handler.setAPI();
183183
});
184184

185185
it("should have a status defined", async () => {

packages/common/test/testUtils/apiHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { KusamaEndpoints } from "../../src/constants";
33

44
export const getKusamaHandler = async () => {
55
const apiHandler = new ApiHandler(KusamaEndpoints);
6-
await apiHandler.initiateConnection();
6+
await apiHandler.setAPI();
77
await apiHandler.getApi()?.isReady;
88
let health = await apiHandler.healthCheck();
99
while (!health) {

packages/common/test/testUtils/scorekeeper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { KusamaEndpoints } from "../../src/constants";
66

77
export const getAndStartScorekeeper = async () => {
88
const apiHandler = new ApiHandler(KusamaEndpoints);
9-
await apiHandler.initiateConnection();
9+
await apiHandler.setAPI();
1010
await apiHandler.getApi()?.isReady;
1111
let health = await apiHandler.healthCheck();
1212
while (!health) {

packages/core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const createAPIHandler = async (config, retries = 0) => {
3939
: Constants.LocalEndpoints;
4040

4141
const handler = new ApiHandler(endpoints);
42-
await handler.initiateConnection();
42+
await handler.setAPI();
4343

4444
// Check API health before proceeding.
4545
let health = await handler.healthCheck();

packages/worker/src/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Worker {
2222
const endpoints = this.apiEndpoints.sort(() => Math.random() - 0.5);
2323
logger.info(`ApiHandler connecting to ${endpoints[0]}`, workerLabel);
2424
this.api = new ApiHandler(endpoints);
25-
await this.api.initiateConnection();
25+
await this.api.setAPI();
2626
}
2727

2828
async initializeConstraints(): Promise<any> {

0 commit comments

Comments
 (0)