Skip to content

Commit

Permalink
docs: change the rental time to 15 minutes in examples and README files
Browse files Browse the repository at this point in the history
  • Loading branch information
SewerynKras committed Oct 9, 2024
1 parent 083a0eb commit b069f54
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
14 changes: 7 additions & 7 deletions docs/UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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),
Expand Down
4 changes: 2 additions & 2 deletions docs/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion examples/rental-model/advanced/local-image/local-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b069f54

Please sign in to comment.