From d84005ecf264436045729188d1439ed88d6ae4b8 Mon Sep 17 00:00:00 2001 From: occupyhabit Date: Mon, 2 Dec 2024 22:10:16 +0800 Subject: [PATCH] chore: fix some typos in comment Signed-off-by: occupyhabit --- src/experimental/job/job.ts | 2 +- src/golem-network/golem-network.ts | 2 +- src/market/market.module.test.ts | 2 +- src/market/market.module.ts | 2 +- src/network/network.test.ts | 2 +- src/shared/yagna/adapters/market-api-adapter.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/experimental/job/job.ts b/src/experimental/job/job.ts index f4971d203..3ad7bfbbd 100644 --- a/src/experimental/job/job.ts +++ b/src/experimental/job/job.ts @@ -37,7 +37,7 @@ export interface JobEventsDict { */ canceled: () => void; /** - * Emitted when the job finishes cleanup after success, error or cancelation. + * Emitted when the job finishes cleanup after success, error or cancellation. */ ended: () => void; } diff --git a/src/golem-network/golem-network.ts b/src/golem-network/golem-network.ts index 26ed7f27e..0f9f3c031 100644 --- a/src/golem-network/golem-network.ts +++ b/src/golem-network/golem-network.ts @@ -571,7 +571,7 @@ export class GolemNetwork { * @param options.order - represents the order specifications which will result in access to LeaseProcess. * @param options.poolSize {Object | number} - can be defined as a number or an object with min and max fields, if defined as a number it will be treated as a min parameter. * @param options.poolSize.min - the minimum pool size to achieve ready state (default = 0) - * @param options.poolSize.max - the maximum pool size, if reached, the next pool element will only be available if the borrowed resource is released or destroyed (dafault = 100) + * @param options.poolSize.max - the maximum pool size, if reached, the next pool element will only be available if the borrowed resource is released or destroyed (default = 100) * @param options.setup - an optional function that is called as soon as the exe unit is ready * @param options.teardown - an optional function that is called before the exe unit is destroyed */ diff --git a/src/market/market.module.test.ts b/src/market/market.module.test.ts index da51542ca..912c32562 100644 --- a/src/market/market.module.test.ts +++ b/src/market/market.module.test.ts @@ -584,7 +584,7 @@ describe("Market module", () => { }); }); describe("estimateBudget()", () => { - it("estimates budget for max number of agreeements", () => { + it("estimates budget for max number of agreements", () => { const order: MarketOrderSpec = { demand: { workload: { diff --git a/src/market/market.module.ts b/src/market/market.module.ts index 2a66a9d52..2bfbc8992 100644 --- a/src/market/market.module.ts +++ b/src/market/market.module.ts @@ -200,7 +200,7 @@ export interface MarketModule { }): Observable; /** - * Estimate the budget for the given order and maximum numbers of agreemnets. + * Estimate the budget for the given order and maximum numbers of agreements. * Keep in mind that this is just an estimate and the actual cost may vary. * The method returns the estimated budget in GLM. * @param params diff --git a/src/network/network.test.ts b/src/network/network.test.ts index 28f3fcae2..7f5f7ed51 100644 --- a/src/network/network.test.ts +++ b/src/network/network.test.ts @@ -64,7 +64,7 @@ describe("Network", () => { new GolemNetworkError(`Unable to add node network-node-id to removed network`, NetworkErrorCode.NetworkRemoved), ); }); - test("should get first avialble ip adrress", () => { + test("should get first avialble ip address", () => { const network = new Network("network-id", "192.168.0.0/24"); expect(network.getFirstAvailableIpAddress().toString()).toEqual("192.168.0.1"); }); diff --git a/src/shared/yagna/adapters/market-api-adapter.ts b/src/shared/yagna/adapters/market-api-adapter.ts index 1d9caf8f9..142af013a 100644 --- a/src/shared/yagna/adapters/market-api-adapter.ts +++ b/src/shared/yagna/adapters/market-api-adapter.ts @@ -25,7 +25,7 @@ import { ScanSpecification, ScannedOffer } from "../../../market/scan"; /** * A bit more user-friendly type definition of DemandOfferBaseDTO from ya-ts-client * - * That's probably one of the most confusing elements around Golem Protocol and the API specificiation: + * That's probably one of the most confusing elements around Golem Protocol and the API specification: * * - Providers create Offers * - Requestors create Demands