From 3aa8d5b77029286f5c73da2b84a33ee0af0c3a83 Mon Sep 17 00:00:00 2001 From: Brendan Goodenough Date: Tue, 20 Dec 2022 08:19:05 +1300 Subject: [PATCH] Remove experimental log from mass call client and add as doc comment --- components/js-api-client/src/core/massCallClient.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/components/js-api-client/src/core/massCallClient.ts b/components/js-api-client/src/core/massCallClient.ts index 367d3d37..82cd92d5 100644 --- a/components/js-api-client/src/core/massCallClient.ts +++ b/components/js-api-client/src/core/massCallClient.ts @@ -52,6 +52,14 @@ const createFibonnaciSleeper = () => { }; }; +/** + * Note: MassCallClient is experimental and may not work as expected. + * Creates a mass call client based on an existing ClientInterface. + * + * @param client ClientInterface + * @param options Object + * @returns MassClientInterface + */ export function createMassCallClient( client: ClientInterface, options: { @@ -77,8 +85,6 @@ export function createMassCallClient( let increment = options.initialSpawn ?? 1; const sleeper = createFibonnaciSleeper(); - console.log('⚠️ MassCallClient is experimental and may not work as expected.'); - const execute = async () => { failedPromises = []; let batch = [];