Skip to content

Commit

Permalink
Updated godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
UlyanaAndrukhiv committed Aug 29, 2024
1 parent 0aada71 commit f039d15
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions storage/pebble/registers_pruner.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ const (
DefaultPruneTickerInterval = 10 * time.Minute
)

// pruneIntervalRatio represents an additional percentage of pruneThreshold which is used to calculate pruneInterval
const (
pruneIntervalRatio = 0.1
// pruneIntervalRatio represents an additional percentage of pruneThreshold which is used to calculate pruneInterval
pruneIntervalRatio = 0.1
// deleteItemsPerBatch defines the number of database keys to delete in each batch operation.
// This value is used to control the size of deletion operations during pruning.
deleteItemsPerBatch = 256
)

Expand Down Expand Up @@ -133,6 +135,8 @@ func (p *RegisterPruner) loop(ctx irrecoverable.SignalerContext, ready component
//
// Parameters:
// - ctx: The context for managing the pruning throttle delay operation.
//
// No errors are expected during normal operations.
func (p *RegisterPruner) checkPrune(ctx context.Context) error {
firstHeight, err := firstStoredHeight(p.db)
if err != nil {
Expand Down

0 comments on commit f039d15

Please sign in to comment.