Skip to content

Commit

Permalink
set default value of lightweight mode = false
Browse files Browse the repository at this point in the history
  • Loading branch information
imabdulbasit committed Feb 28, 2025
1 parent 1064a6a commit b6f28d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions sequencer/src/api/sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ impl SequencerDataSource for DataSource {
}

if opt.lightweight {
tracing::warn!("enabling light weight mode..");
builder = builder.leaf_only();
}

Expand Down
6 changes: 1 addition & 5 deletions sequencer/src/persistence/sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,7 @@ pub struct Options {
pub(crate) archive: bool,

/// Turns on leaf only data storage
#[clap(
long,
env = "ESPRESSO_SEQUENCER_LIGHTWEIGHT",
conflicts_with = "archive"
)]
#[clap(long, env = "ESPRESSO_SEQUENCER_LIGHTWEIGHT", default_value_t = false)]
pub(crate) lightweight: bool,

/// The maximum idle time of a database connection.
Expand Down

0 comments on commit b6f28d4

Please sign in to comment.