Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
cool-develope committed May 28, 2024
1 parent 8bf3749 commit 63f6363
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions store/v2/pruning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ and is passed to the `PruningManager` during initialization.

The `PruneOptions` struct includes the following fields:

- `KeepRecent` (uint64): The number of recent heights to keep in the state.
- `Interval` (uint64): The interval of how often to prune the state. 0 means no pruning.
* `KeepRecent` (uint64): The number of recent heights to keep in the state.
* `Interval` (uint64): The interval of how often to prune the state. 0 means no pruning.

## Pausable Pruner

The `PausablePruner` interface defines the `PausePruning` method which is used to pause
The `PausablePruner` interface defines the `PausePruning` method, which is used to pause
the pruning process. The `PruningManager` will check if the pruner is a `PausablePruner`
and call the `PausePruning` method before and after `Commit` to pause and resume pruning.
This is useful for when the pruning process is asynchronous and needs to be paused during
Expand Down Expand Up @@ -49,4 +49,4 @@ sequenceDiagram
B->>C: Prune(height)
B->>D: Prune(height)
end
```
```

0 comments on commit 63f6363

Please sign in to comment.