fuel_core_importer/
config.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#[derive(Debug, Clone)]
pub struct Config {
    pub max_block_notify_buffer: usize,
    pub metrics: bool,
}

impl Config {
    pub fn new(metrics: bool) -> Self {
        Self {
            max_block_notify_buffer: 1 << 10,
            metrics,
        }
    }
}

impl Default for Config {
    fn default() -> Self {
        Self::new(false)
    }
}