From f20c0d8a4ca03af50aa175f3887c296b2b3aa0a5 Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Wed, 26 May 2021 16:55:32 +0200 Subject: [PATCH] chore: remove test code Signed-off-by: Johan Haals --- plugins/catalog-backend/src/next/Stitcher.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/catalog-backend/src/next/Stitcher.ts b/plugins/catalog-backend/src/next/Stitcher.ts index 6958c7c3cf..79cbdd3a8e 100644 --- a/plugins/catalog-backend/src/next/Stitcher.ts +++ b/plugins/catalog-backend/src/next/Stitcher.ts @@ -60,7 +60,6 @@ export class Stitcher { async stitch(entityRefs: Set) { for (const entityRef of entityRefs) { - const endTimer = createTimer('stitch'); try { const ticket = uuid(); const ticketRows = await this.database( @@ -236,7 +235,6 @@ export class Stitcher { .where({ entity_id: entityId }) .delete(); await this.database.batchInsert('search', searchEntries, BATCH_SIZE); - endTimer(); } catch (error) { this.logger.error(`Failed to stitch ${entityRef}, ${error}`); }