0g-storage-node/node/file_location_cache/src/lib.rs
Bo QIU b6972b97af
Some checks are pending
abi-consistent-check / build-and-compare (push) Waiting to run
code-coverage / unittest-cov (push) Waiting to run
rust / check (push) Waiting to run
rust / test (push) Waiting to run
rust / lints (push) Waiting to run
functional-test / test (push) Waiting to run
Adjust default value for testnet configs (#180)
* Adjust default value for testnet configs

* Supports to disable sequential auto sync

* Add py tests for auto sync

* fix py file name

* rm dummy ;py code

* change default block confirm count
2024-09-05 10:09:29 +08:00

25 lines
534 B
Rust

mod file_location_cache;
pub mod test_util;
use serde::Deserialize;
pub use crate::file_location_cache::FileLocationCache;
#[derive(Clone, Copy, Debug, Deserialize)]
#[serde(default)]
pub struct Config {
pub max_entries_total: usize,
pub max_entries_per_file: usize,
pub entry_expiration_time_secs: u32,
}
impl Default for Config {
fn default() -> Self {
Config {
max_entries_total: 1000000,
max_entries_per_file: 4,
entry_expiration_time_secs: 86400,
}
}
}