Update default for scanconfig
This commit is contained in:
parent
7cee8763eb
commit
780e1f0f21
|
@ -91,7 +91,7 @@ pub enum UpsertReclaim {
|
|||
IgnoreReclaims,
|
||||
}
|
||||
|
||||
#[derive(Debug, Default)]
|
||||
#[derive(Debug)]
|
||||
pub struct ScanConfig {
|
||||
/// checked by the scan. When true, abort scan.
|
||||
pub abort: Option<Arc<AtomicBool>>,
|
||||
|
@ -101,6 +101,15 @@ pub struct ScanConfig {
|
|||
pub collect_all_unsorted: bool,
|
||||
}
|
||||
|
||||
impl Default for ScanConfig {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
collect_all_unsorted: true,
|
||||
abort: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl ScanConfig {
|
||||
pub fn new(collect_all_unsorted: bool) -> Self {
|
||||
Self {
|
||||
|
|
Loading…
Reference in New Issue