Remove magic number

This commit is contained in:
Adria Navarro 2024-02-19 21:07:45 +01:00
parent a9d016fd02
commit d1e0b37dc2
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ export class IsolatedVM implements VM {
[this.resultKey]: { [this.runResultKey]: "" },
})
this.invocationTimeout = invocationTimeout || 1000
this.invocationTimeout =
invocationTimeout || environment.JS_PER_INVOCATION_TIMEOUT_MS
this.isolateAccumulatedTimeout = isolateAccumulatedTimeout
}