mirror of
https://github.com/dergigi/boris.git
synced 2025-12-25 10:34:28 +01:00
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:
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user