fix(git): raise the discovery probe timeout to 5s (#369)
3s was tight for cold caches on large home directories; 5s still bounds a stalled mount well below the 30s command budget while cutting false negatives on slow-but-healthy checkouts.
This commit is contained in:
+1
-1
@@ -195,7 +195,7 @@ const DISCOVERY_LIMIT = 200
|
||||
/** Per-probe and direct-discovery budget. `rev-parse` is millisecond-scale on
|
||||
* a healthy checkout; a probe that needs longer is a stalled mount and is
|
||||
* better abandoned than waited on. */
|
||||
const DISCOVERY_TIMEOUT_MS = 3_000
|
||||
const DISCOVERY_TIMEOUT_MS = 5_000
|
||||
/** Discovery results are cheap to recompute but expensive to storm: the panel
|
||||
* polls every 2s and each poll fans out into several git.* calls that all
|
||||
* resolve the same roots. A short TTL keeps fan-out at one scan per cwd. */
|
||||
|
||||
Reference in New Issue
Block a user