debug: increase decrypt timeout to 15 seconds

- Give bunker operations more time to respond
- Will help determine if this is a timing issue or a fundamental limitation
- Still logging timeout errors for visibility
This commit is contained in:
Gigi
2025-10-17 00:05:53 +02:00
parent 59dac947ab
commit 55e44dcc9c

View File

@@ -12,9 +12,9 @@ type HiddenContentSigner = Parameters<UnlockHiddenTagsFn>[1]
type UnlockMode = Parameters<UnlockHiddenTagsFn>[2]
/**
* Wrap a decrypt promise with a timeout to prevent hanging
* Wrap a decrypt promise with a timeout to prevent hanging (using 15s timeout for bunker)
*/
function withDecryptTimeout<T>(promise: Promise<T>, timeoutMs = 5000): Promise<T> {
function withDecryptTimeout<T>(promise: Promise<T>, timeoutMs = 15000): Promise<T> {
return Promise.race([
promise,
new Promise<T>((_, reject) =>