| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Adjust the session startup timeout logic to account for a reduced sleep interval of 200ms between polls, and remove the old static warning threshold.
src/process.ts:286
// Check every second.
src/process.ts:282
const numOfTries = // We sleep for 1/5 of a second each try
Sorry, something went wrong.
| 5 * this.sessionSettings.developer.waitForSessionFileTimeoutSeconds; | ||
| const warnAt = numOfTries - 5 * 30; // Warn at 30 seconds |
There was a problem hiding this comment.
[nitpick] Replace magic numbers (5 and 30) with named constants (e.g., retriesPerSecond and warnThresholdSeconds) to clarify their purpose.
| 5 * this.sessionSettings.developer.waitForSessionFileTimeoutSeconds; | |
| const warnAt = numOfTries - 5 * 30; // Warn at 30 seconds | |
| PowerShellProcess.retriesPerSecond * this.sessionSettings.developer.waitForSessionFileTimeoutSeconds; | |
| const warnAt = numOfTries - PowerShellProcess.retriesPerSecond * PowerShellProcess.warnThresholdSeconds; // Warn at 30 seconds |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Glad I remembered this.