From 999f308ad550edc20af8393a100a8fd944ec5fa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Fri, 3 Apr 2026 23:06:47 +0200 Subject: [PATCH] Call getOwnServiceCredentials per request, not once per loop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw Made-with: Cursor --- .../src/collators/DefaultTechDocsCollatorFactory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/search-backend-module-techdocs/src/collators/DefaultTechDocsCollatorFactory.ts b/plugins/search-backend-module-techdocs/src/collators/DefaultTechDocsCollatorFactory.ts index 0c13aadbc6..7d81b681ba 100644 --- a/plugins/search-backend-module-techdocs/src/collators/DefaultTechDocsCollatorFactory.ts +++ b/plugins/search-backend-module-techdocs/src/collators/DefaultTechDocsCollatorFactory.ts @@ -143,8 +143,8 @@ export class DefaultTechDocsCollatorFactory implements DocumentCollatorFactory { // at index-time. The batchSize is calculated as a factor of the given // parallelism limit to simplify configuration. const batchSize = this.parallelismLimit * 50; - const credentials = await this.auth.getOwnServiceCredentials(); while (moreEntitiesToGet) { + const credentials = await this.auth.getOwnServiceCredentials(); const entities = ( await this.catalog.getEntities( {