Make the MaxMemory use the default value when undefined

This commit is contained in:
Kerollmops 2021-08-24 11:46:37 +02:00 committed by Clément Renault
parent 63e67f72e3
commit 4cdf680a81
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -35,7 +35,7 @@ pub struct IndexerOpts {
/// In case the engine is unable to retrieve the available memory the engine will /// In case the engine is unable to retrieve the available memory the engine will
/// try to use the memory it needs but without real limit, this can lead to /// try to use the memory it needs but without real limit, this can lead to
/// Out-Of-Memory issues and it is recommended to specify the amount of memory to use. /// Out-Of-Memory issues and it is recommended to specify the amount of memory to use.
#[structopt(long)] #[structopt(long, default_value)]
pub max_memory: MaxMemory, pub max_memory: MaxMemory,
/// Size of the linked hash map cache when indexing. /// Size of the linked hash map cache when indexing.