Skip to content

Commit 4de36f9

Browse files
chore: make GC_CHECKPOINT_THRESHOLD configurable
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent 43387b1 commit 4de36f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/checkpoints/ShadowCheckpointService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export abstract class ShadowCheckpointService extends EventEmitter {
3131
// --- CHANGE START: Add cache for nested git repo paths ---
3232
// --- ADDITION: GC related properties ---
3333
private gcCounter: number = 0
34-
private readonly GC_CHECKPOINT_THRESHOLD: number = 20 // Run gc every 20 checkpoints
34+
private readonly GC_CHECKPOINT_THRESHOLD: number = Number(process.env.GC_CHECKPOINT_THRESHOLD) || 20 // Run gc every 20 checkpoints
3535
private _nestedGitDirPaths: string[] | null = null // Cache for relative paths like "submodule/.git"
3636
// --- CHANGE END: Add cache for nested git repo paths ---
3737
protected shadowGitConfigWorktree?: string

0 commit comments

Comments
 (0)