diff --git a/README.md b/README.md index ee1940224..ac0c1cd58 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ const order: MarketOrderSpec = { }, market: { // We're only going to rent the provider for 5 minutes max - rentHours: 5 / 60, + rentHours: 15 / 60, pricing: { model: "linear", maxStartPrice: 0.5, diff --git a/docs/UPGRADING.md b/docs/UPGRADING.md index 03d789653..db86a5b85 100644 --- a/docs/UPGRADING.md +++ b/docs/UPGRADING.md @@ -47,14 +47,14 @@ import { GolemNetwork } from "@golem-sdk/golem-js"; try { await glm.connect(); - const retnal = await glm.oneOf({ + const rental = await glm.oneOf({ order: { demand: { workload: { imageTag: "golem/alpine:latest" }, }, - // You have to be now explicit about about your terms and expectatios from the market + // You have to be now explicit about about your terms and expectations from the market market: { - rentHours: 5 / 60, + rentHours: 15 / 60, pricing: { model: "linear", maxStartPrice: 0.5, @@ -132,9 +132,9 @@ import { GolemNetwork } from "@golem-sdk/golem-js"; demand: { workload: { imageTag: "golem/alpine:latest" }, }, - // You have to be now explicit about about your terms and expectatios from the market + // You have to be now explicit about about your terms and expectations from the market market: { - rentHours: 5 / 60, + rentHours: 15 / 60, pricing: { model: "linear", maxStartPrice: 0.5, @@ -147,13 +147,13 @@ import { GolemNetwork } from "@golem-sdk/golem-js"; const inputs = [1, 2, 3, 4, 5]; - // You still take the necessary precaucions, pipeline your work and processing + // You still take the necessary precautions, pipeline your work and processing const results = await Promise.allSettled( inputs.map((input) => // 🌟🌟 You access rentals from the pool pool.withRental((rental) => rental - // 🌟🌟🌟 You issue the comands as in case of a single-provider scenario + // 🌟🌟🌟 You issue the commands as in case of a single-provider scenario .getExeUnit() .then((exe) => exe.run(`echo 'Hello ${input}`)) .then((res) => res.stdout), diff --git a/docs/USAGE.md b/docs/USAGE.md index 5289ac82b..76e412c62 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -21,8 +21,8 @@ const order: MarketOrderSpec = { workload: { imageTag: "golem/alpine:latest" }, }, market: { - // We're only going to rent the provider for 5 minutes max - rentHours: 5 / 60, + // We're only going to rent the provider for 15 minutes max + rentHours: 15 / 60, pricing: { model: "linear", maxStartPrice: 0.5, diff --git a/examples/rental-model/advanced/local-image/local-image.ts b/examples/rental-model/advanced/local-image/local-image.ts index 3c4503539..9acd4eadf 100644 --- a/examples/rental-model/advanced/local-image/local-image.ts +++ b/examples/rental-model/advanced/local-image/local-image.ts @@ -29,7 +29,7 @@ const getImagePath = (path: string) => new URL(path, import.meta.url).toString() }, }, market: { - rentHours: 5 / 60, + rentHours: 15 / 60, pricing: { model: "linear", maxStartPrice: 1,