Skip to content
Snippets Groups Projects
Commit 096553cb authored by Sebastian Kunert's avatar Sebastian Kunert Committed by GitHub
Browse files

Use `ArgAction::Set` for enable-offchain-indexing flag (#12521)

* Use ArgAction::Set for enable-offchain-indexing

* Provide default value for `enable-offchain-indexing`
parent b16135f6
No related merge requests found
......@@ -23,7 +23,7 @@
//! targeted at handling input parameter parsing providing
//! a reasonable abstraction.
use clap::Args;
use clap::{ArgAction, Args};
use sc_network::config::Role;
use sc_service::config::OffchainWorkerConfig;
......@@ -48,7 +48,7 @@ pub struct OffchainWorkerParams {
///
/// Enables a runtime to write directly to a offchain workers
/// DB during block import.
#[arg(long = "enable-offchain-indexing", value_name = "ENABLE_OFFCHAIN_INDEXING")]
#[arg(long = "enable-offchain-indexing", value_name = "ENABLE_OFFCHAIN_INDEXING", default_value_t = false, action = ArgAction::Set)]
pub indexing_enabled: bool,
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment