mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-01-27 23:35:18 +00:00
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 * 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
25 lines
534 B
Rust
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,
|
|
}
|
|
}
|
|
}
|