From 5993dbdd017f694d2a153b8878cf2f758fae91ca Mon Sep 17 00:00:00 2001 From: Grzegorz Godlewski Date: Thu, 27 Jun 2024 10:41:18 +0200 Subject: [PATCH] refactor: rename concurrencty to poolSize --- docs/FEATURES.md | 2 +- docs/UPGRADING.md | 4 ++-- docs/USAGE.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/FEATURES.md b/docs/FEATURES.md index fcdb2bd55..50313be25 100644 --- a/docs/FEATURES.md +++ b/docs/FEATURES.md @@ -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, }); diff --git a/docs/UPGRADING.md b/docs/UPGRADING.md index 866d34f6f..6e1ec44be 100644 --- a/docs/UPGRADING.md +++ b/docs/UPGRADING.md @@ -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:** @@ -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" }, diff --git a/docs/USAGE.md b/docs/USAGE.md index 31b141fcf..5289ac82b 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -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