Make the test use the default CLI options

This commit is contained in:
Kerollmops 2022-03-21 10:50:55 +01:00
parent 0d6be2efab
commit 8fecc6238d
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
2 changed files with 3 additions and 37 deletions

View file

@ -90,19 +90,6 @@ impl TryFrom<&IndexerOpts> for IndexerConfig {
}
}
impl Default for IndexerOpts {
fn default() -> Self {
Self {
log_every_n: 100_000,
max_nb_chunks: None,
max_memory: MaxMemory::default(),
chunk_compression_type: CompressionType::None,
chunk_compression_level: None,
indexing_jobs: None,
}
}
}
/// A type used to detect the max memory available and use 2/3 of it.
#[derive(Debug, Clone, Copy)]
pub struct MaxMemory(Option<Byte>);