Skip to content

Commit

Permalink
fix: use correct pruning strategy for serve-snapshots (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler authored Mar 12, 2024
1 parent 333132a commit e01b8fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions servesnapshots/servesnapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ func StartServeSnapshotsWithBinary(engine types.Engine, binaryPath, homePath, ch
if pruning {
snapshotArgs = append(
snapshotArgs,
"--pruning",
"custom",
"--pruning-keep-recent",
strconv.FormatInt(utils.SnapshotPruningWindowFactor*config.Interval, 10),
"--pruning-interval",
"10",
)

if keepSnapshots {
Expand Down

0 comments on commit e01b8fa

Please sign in to comment.