Skip to content

Commit

Permalink
fix(cs): Code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
serg-temchenko committed Jun 18, 2024
1 parent 818d250 commit a0711b5
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cli/polka-storage-provider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ serde = { workspace = true }
serde_json = { workspace = true }
subxt = { workspace = true }
subxt-signer = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true, features = ["env-filter"] }
url = { workspace = true }
thiserror = { workspace = true }

[lints]
workspace = true
3 changes: 2 additions & 1 deletion cli/polka-storage-provider/src/commands/info.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::Error;
use clap::Parser;

use crate::Error;

/// Command to display information about the storage provider.
#[derive(Debug, Clone, Parser)]
pub(crate) struct InfoCommand;
Expand Down
3 changes: 2 additions & 1 deletion cli/polka-storage-provider/src/commands/init.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use crate::Error;
use clap::Parser;
use tracing::info;

use crate::Error;

/// Command to initialize the storage provider.
#[derive(Debug, Clone, Parser)]
pub(crate) struct InitCommand;
Expand Down
3 changes: 1 addition & 2 deletions cli/polka-storage-provider/src/commands/run.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
use std::{net::SocketAddr, sync::Arc};

use crate::Error;
use chrono::Utc;
use clap::Parser;
use tracing::info;
use url::Url;

use crate::{
rpc::{start_rpc, RpcServerState},
substrate,
substrate, Error,
};

const SERVER_DEFAULT_BIND_ADDR: &str = "127.0.0.1:8000";
Expand Down
3 changes: 1 addition & 2 deletions cli/polka-storage-provider/src/commands/runner.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use crate::Error;
use clap::Parser;

use super::WalletCommand;
use crate::{cli::SubCommand, Cli};
use crate::{cli::SubCommand, Cli, Error};

/// Parses command line arguments into the service configuration and runs the specified
/// command with it.
Expand Down
3 changes: 1 addition & 2 deletions cli/polka-storage-provider/src/rpc.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::{future::Future, net::SocketAddr, sync::Arc};

use crate::Error;
use chrono::Utc;
use error::ServerError;
use jsonrpsee::{
Expand All @@ -11,7 +10,7 @@ use jsonrpsee::{
use methods::create_module;
use serde::{Deserialize, Serialize};

use crate::substrate;
use crate::{substrate, Error};

pub mod error;
pub mod methods;
Expand Down

0 comments on commit a0711b5

Please sign in to comment.