No snapshotting by default (#11814)

This commit is contained in:
adria0.eth
2020-09-15 16:51:49 +02:00
committed by GitHub
parent 61e56aba41
commit b54ddd027d
6 changed files with 15 additions and 15 deletions

View File

@@ -102,8 +102,8 @@ const MAX_SNAPSHOT_SUBPARTS: usize = 256;
/// Configuration for the Snapshot service
#[derive(Debug, Clone, PartialEq)]
pub struct SnapshotConfiguration {
/// If `true`, no periodic snapshots will be created
pub no_periodic: bool,
/// Enable creation of periodic snapshots
pub enable: bool,
/// Number of threads for creating snapshots
pub processing_threads: usize,
}
@@ -111,7 +111,7 @@ pub struct SnapshotConfiguration {
impl Default for SnapshotConfiguration {
fn default() -> Self {
SnapshotConfiguration {
no_periodic: false,
enable: false,
processing_threads: ::std::cmp::max(1, num_cpus::get_physical() / 2),
}
}