Skip to content

Commit

Permalink
refactor: rename concurrencty to poolSize
Browse files Browse the repository at this point in the history
  • Loading branch information
grisha87 committed Jun 27, 2024
1 parent 3a3ce5f commit 5993dbd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const teardown: LifecycleFunction = async (exe) => exe.run("rm /golem/work/big-f

const pool = await glm.manyOf({
order,
concurrency,
poolSize,
setup,
teardown,
});
Expand Down
4 changes: 2 additions & 2 deletions docs/UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ import { GolemNetwork } from "@golem-sdk/golem-js";

Areas where the changes are needed:

- instead of using `maxParallelTasks` from `TaskExecutor`, use `concurrency` option on `GolemNetwork.manyOf` market order spec argument.
- instead of using `maxParallelTasks` from `TaskExecutor`, use `poolSize` option on `GolemNetwork.manyOf` market order spec argument.

**Before:**

Expand Down Expand Up @@ -127,7 +127,7 @@ import { GolemNetwork } from "@golem-sdk/golem-js";
// 🌟 You acquire a pool of ResourceRentals
const pool = await glm.manyOf({
// 🔢 Number of max providers which you want to engage with
concurrency: 3,
poolSize: 3,
order: {
demand: {
workload: { imageTag: "golem/alpine:latest" },
Expand Down
2 changes: 1 addition & 1 deletion docs/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const order: MarketOrderSpec = {
await glm.connect();
// create a pool that can grow up to 3 rentals at the same time
const pool = await glm.manyOf({
concurrency: 3,
poolSize: 3,
order,
});
// run 3 tasks in parallel on 3 different machines
Expand Down

0 comments on commit 5993dbd

Please sign in to comment.