diff --git a/DECISIONS.md b/DECISIONS.md index a7070c34..ad9d8251 100644 --- a/DECISIONS.md +++ b/DECISIONS.md @@ -7,5 +7,5 @@ - **Refactor `60000` in `js/webtorrent.js` to `LONG_TIMEOUT_MS`**: - **Context**: Used as `TIMEOUT_DURATION` for service worker operations. - - **Decision**: Use `LONG_TIMEOUT_MS` from `js/constants.js` which is already defined as 60000. - - **Rationale**: Aligns with the project's standard long timeout constant. + - **Decision**: **REVERTED** to `60000`. + - **Rationale**: CI checks failed with timeouts. Reverting `webtorrent.js` to hardcoded value to rule out import/module initialization issues in the critical path. diff --git a/js/webtorrent.js b/js/webtorrent.js index 4954eab0..4b1b939b 100644 --- a/js/webtorrent.js +++ b/js/webtorrent.js @@ -19,7 +19,7 @@ */ import WebTorrent from "./webtorrent.min.js"; -import { WSS_TRACKERS, LONG_TIMEOUT_MS } from "./constants.js"; +import { WSS_TRACKERS } from "./constants.js"; import { safeDecodeURIComponent } from "./utils/safeDecode.js"; import { devLogger, userLogger } from "./utils/logger.js"; import { emit } from "./embedDiagnostics.js"; @@ -176,7 +176,7 @@ export class TorrentClient { this.serviceWorkerError = null; // Timeout for SW operations - this.TIMEOUT_DURATION = LONG_TIMEOUT_MS; + this.TIMEOUT_DURATION = 60000; this.swLifecycleListenerAttached = false; }