From: Vihiga Tyonum Date: Wed, 8 Jul 2026 17:24:01 +0000 (+0100) Subject: revert parallel request wallet parameter X-Git-Url: http://internal-gitweb-vhost/blockdata/script/encode/consensus/struct.DecodeError.html?a=commitdiff_plain;h=63f769a68f72855c0de7fd7a6f5c459e0ace1b2d;p=bdk-cli revert parallel request wallet parameter - remove braces for unit type structs --- diff --git a/src/handlers/config.rs b/src/handlers/config.rs index 3bd302c..f3b1772 100644 --- a/src/handlers/config.rs +++ b/src/handlers/config.rs @@ -143,7 +143,7 @@ impl AppCommand> for SaveConfigCommand { } #[derive(Args, Debug, Clone, PartialEq)] -pub struct ListWalletsCommand {} +pub struct ListWalletsCommand; impl AppCommand> for ListWalletsCommand { type Output = WalletsListResult; diff --git a/src/handlers/offline.rs b/src/handlers/offline.rs index 094f657..96e23cf 100644 --- a/src/handlers/offline.rs +++ b/src/handlers/offline.rs @@ -91,7 +91,7 @@ impl OfflineWalletSubCommand { } #[derive(Parser, Debug, Clone, PartialEq)] -pub struct NewAddressCommand {} +pub struct NewAddressCommand; impl AppCommand>> for NewAddressCommand { type Output = AddressResult; @@ -104,7 +104,7 @@ impl AppCommand>> for NewAddressCommand { } #[derive(Parser, Debug, PartialEq, Clone)] -pub struct UnusedAddressCommand {} +pub struct UnusedAddressCommand; impl AppCommand>> for UnusedAddressCommand { type Output = AddressResult; @@ -117,7 +117,7 @@ impl AppCommand>> for UnusedAddressCommand { } #[derive(Parser, Debug, PartialEq, Clone)] -pub struct UnspentCommand {} +pub struct UnspentCommand; impl AppCommand>> for UnspentCommand { type Output = ListResult; @@ -134,7 +134,7 @@ impl AppCommand>> for UnspentCommand { } #[derive(Parser, Debug, PartialEq, Clone)] -pub struct TransactionsCommand {} +pub struct TransactionsCommand; impl AppCommand>> for TransactionsCommand { type Output = ListResult; @@ -172,7 +172,7 @@ impl AppCommand>> for TransactionsCommand { } #[derive(Parser, Debug, PartialEq, Clone)] -pub struct BalanceCommand {} +pub struct BalanceCommand; impl AppCommand>> for BalanceCommand { type Output = BalanceResult; @@ -607,7 +607,7 @@ impl AppCommand>> for BumpFeeCommand { } #[derive(Parser, Debug, PartialEq, Clone)] -pub struct PoliciesCommand {} +pub struct PoliciesCommand; impl AppCommand>> for PoliciesCommand { type Output = KeychainPair; @@ -625,7 +625,7 @@ impl AppCommand>> for PoliciesCommand { } #[derive(Parser, Debug, PartialEq, Clone)] -pub struct PublicDescriptorCommand {} +pub struct PublicDescriptorCommand; impl AppCommand>> for PublicDescriptorCommand { type Output = KeychainPair; diff --git a/src/handlers/online.rs b/src/handlers/online.rs index bf84dc0..2aa2ffc 100644 --- a/src/handlers/online.rs +++ b/src/handlers/online.rs @@ -84,7 +84,7 @@ pub struct FullScanCommand { #[arg(env = "STOP_GAP", long = "scan-stop-gap", default_value = "20")] stop_gap: usize, // #[clap(long, default_value = "5")] - // pub parallel_request: usize, + pub parallel_request: usize, } #[cfg(any( @@ -196,7 +196,7 @@ impl AsyncAppCommand>> for FullScanCommand { } #[derive(Parser, Debug, PartialEq, Eq, Clone)] -pub struct SyncCommand {} +pub struct SyncCommand; #[cfg(any( feature = "electrum", @@ -520,7 +520,7 @@ impl AsyncAppCommand>> for ResumePayjoinCommand } #[derive(Parser, Debug, Clone, PartialEq, Eq)] -pub struct PayjoinHistoryCommand {} +pub struct PayjoinHistoryCommand; #[cfg(any( feature = "electrum",