From 7a816c867e3524ce49b6807d100ae795643a1a59 Mon Sep 17 00:00:00 2001 From: devthejo Date: Sat, 28 Jun 2025 07:33:07 +0200 Subject: [PATCH] chore: clean --- index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/index.js b/index.js index 8835994..45a83d9 100644 --- a/index.js +++ b/index.js @@ -224,7 +224,6 @@ const HeadlessTask = async (event) => { }); // Change pace to ensure location updates with timeout - const paceStartTime = Date.now(); await Promise.race([ BackgroundGeolocation.changePace(true), new Promise((_, reject) => @@ -234,24 +233,20 @@ const HeadlessTask = async (event) => { ), ), ]); - const paceDuration = Date.now() - paceStartTime; Sentry.addBreadcrumb({ message: "changePace completed", category: "headless-task", level: "info", - data: { duration: paceDuration }, }); // Perform sync with timeout - const syncStartTime = Date.now(); const syncResult = await Promise.race([ BackgroundGeolocation.sync(), new Promise((_, reject) => setTimeout(() => reject(new Error("sync timeout")), 20000), ), ]); - const syncDuration = Date.now() - syncStartTime; Sentry.addBreadcrumb({ message: "Sync completed successfully",