Skip to content

Commit

Permalink
format the string with cargo fmt by setting "format_strings = true"
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo committed Jan 9, 2024
1 parent 3061398 commit b64faa1
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions ledger/src/use_snapshot_archives_at_startup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,20 @@ pub mod cli {
pub const NAME: &str = "use_snapshot_archives_at_startup";
pub const LONG_ARG: &str = "use-snapshot-archives-at-startup";
pub const HELP: &str = "When should snapshot archives be used at startup?";
pub const LONG_HELP: &str = "At startup, when should snapshot archives be extracted \
versus using what is already on disk? \
\nSpecifying \"always\" will always startup by extracting snapshot archives \
and disregard any snapshot-related state already on disk. \
Note that starting up from snapshot archives will incur the runtime costs \
associated with extracting the archives and rebuilding the local state. \
\nSpecifying \"never\" will never startup from snapshot archives \
and will only use snapshot-related state already on disk. \
If there is no state already on disk, startup will fail. \
Note, this will use the latest state available, \
which may be newer than the latest snapshot archive. \
\nSpecifying \"when-newest\" will use snapshot-related state \
already on disk unless there are snapshot archives newer than it. \
This can happen if a new snapshot archive is downloaded \
while the node is stopped.";
pub const LONG_HELP: &str =
"At startup, when should snapshot archives be extracted versus using what is already on \
disk?
Specifying \"always\" will always startup by extracting snapshot archives and disregard \
any snapshot-related state already on disk. Note that starting up from snapshot archives \
will incur the runtime costs associated with extracting the archives and rebuilding the \
local state.
Specifying \"never\" will never startup from snapshot archives and will only use \
snapshot-related state already on disk. If there is no state already on disk, startup \
will fail. Note, this will use the latest state available, which may be newer than the \
latest snapshot archive.
Specifying \"when-newest\" will use snapshot-related state already on disk unless there \
are snapshot archives newer than it. This can happen if a new snapshot archive is \
downloaded while the node is stopped.";

pub const POSSIBLE_VALUES: &[&str] = UseSnapshotArchivesAtStartup::VARIANTS;

Expand Down

0 comments on commit b64faa1

Please sign in to comment.