File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed
Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff 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- }
You can’t perform that action at this time.
0 commit comments