From 859b88fd9c5825af1dd4386c0596dd0130049df5 Mon Sep 17 00:00:00 2001 From: Serhii Temchenko Date: Thu, 13 Jun 2024 22:41:56 -0700 Subject: [PATCH] fix(cs): Code style fixes --- cli/polka-storage-provider/src/commands/run.rs | 4 ++-- cli/polka-storage-provider/src/commands/wallet.rs | 10 +++++----- cli/polka-storage-provider/src/rpc.rs | 1 - 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/cli/polka-storage-provider/src/commands/run.rs b/cli/polka-storage-provider/src/commands/run.rs index 5fd52ebb5..d7c92406f 100644 --- a/cli/polka-storage-provider/src/commands/run.rs +++ b/cli/polka-storage-provider/src/commands/run.rs @@ -17,10 +17,10 @@ const FULL_NODE_DEFAULT_RPC_ADDR: &str = "ws://127.0.0.1:9944"; /// Command to start the storage provider. #[derive(Debug, Clone, Parser)] pub(crate) struct RunCommand { - /// RPC API endpoint used by the parachain node + /// RPC API endpoint used by the parachain node. #[arg(short = 'n', long, default_value = FULL_NODE_DEFAULT_RPC_ADDR)] pub node_rpc_address: Url, - /// Address used for RPC. By default binds on localhost on port 8000 + /// Address used for RPC. By default binds on localhost on port 8000. #[arg(short = 'a', long, default_value = SERVER_DEFAULT_BIND_ADDR)] pub listen_addr: SocketAddr, } diff --git a/cli/polka-storage-provider/src/commands/wallet.rs b/cli/polka-storage-provider/src/commands/wallet.rs index 21d6c9d01..f679d3c07 100644 --- a/cli/polka-storage-provider/src/commands/wallet.rs +++ b/cli/polka-storage-provider/src/commands/wallet.rs @@ -8,21 +8,21 @@ use sc_cli::{ #[derive(Debug, Parser)] #[command( name = "wallet", - about = "Utility for generating and restoring keys", + about = "Utility for generating and restoring keys.", version )] pub enum WalletCommand { /// Generate a random node key, write it to a file or stdout and write the - /// corresponding peer-id to stderr + /// corresponding peer-id to stderr. GenerateNodeKey(GenerateKeyCmdCommon), - /// Generate a random account + /// Generate a random account. Generate(GenerateCmd), - /// Gets a public key and a SS58 address from the provided Secret URI + /// Gets a public key and a SS58 address from the provided Secret URI. Inspect(InspectKeyCmd), - /// Load a node key from a file or stdin and print the corresponding peer-id + /// Load a node key from a file or stdin and print the corresponding peer-id. InspectNodeKey(InspectNodeKeyCmd), /// Sign a message, with a given (secret) key. diff --git a/cli/polka-storage-provider/src/rpc.rs b/cli/polka-storage-provider/src/rpc.rs index c49404e0e..356a8b39d 100644 --- a/cli/polka-storage-provider/src/rpc.rs +++ b/cli/polka-storage-provider/src/rpc.rs @@ -10,7 +10,6 @@ use jsonrpsee::{ }; use methods::create_module; use serde::{Deserialize, Serialize}; -use tracing::info; use crate::substrate;