Skip to content

Commit

Permalink
v0.1.49
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurshsmith committed Mar 20, 2024
1 parent cab7ae6 commit cc0d778
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chaindexing/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chaindexing"
version = "0.1.48"
version = "0.1.49"
edition = "2021"
description = "Access EVM chain data with SQL"
license = "MIT OR Apache-2.0"
Expand Down
6 changes: 6 additions & 0 deletions chaindexing/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ impl<SharedState: Sync + Send + Clone> Config<SharedState> {
self
}

pub fn with_pruning(mut self) -> Self {
self.pruning_config = Some(Default::default());

self
}

pub fn with_prune_n_blocks_away(mut self, prune_n_blocks_away: u64) -> Self {
self.pruning_config = PruningConfig {
prune_n_blocks_away,
Expand Down

0 comments on commit cc0d778

Please sign in to comment.