Skip to content

Commit 705cdf6

Browse files
authored
chore: removed unused struct StorageConfig (#273)
1 parent ff09ef2 commit 705cdf6

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

dash-spv/src/storage/types.rs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -34,34 +34,3 @@ pub struct StorageStats {
3434
/// Individual component sizes.
3535
pub component_sizes: HashMap<String, u64>,
3636
}
37-
38-
/// Storage configuration.
39-
#[derive(Debug, Clone)]
40-
pub struct StorageConfig {
41-
/// Maximum number of headers to cache in memory.
42-
pub max_header_cache: usize,
43-
44-
/// Maximum number of filter headers to cache in memory.
45-
pub max_filter_header_cache: usize,
46-
47-
/// Maximum number of filters to cache in memory.
48-
pub max_filter_cache: usize,
49-
50-
/// Whether to compress data on disk.
51-
pub enable_compression: bool,
52-
53-
/// Sync to disk frequency.
54-
pub sync_frequency: u32,
55-
}
56-
57-
impl Default for StorageConfig {
58-
fn default() -> Self {
59-
Self {
60-
max_header_cache: 10000,
61-
max_filter_header_cache: 10000,
62-
max_filter_cache: 1000,
63-
enable_compression: true,
64-
sync_frequency: 100,
65-
}
66-
}
67-
}

0 commit comments

Comments
 (0)