Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ryardley committed Dec 2, 2024
1 parent 0249150 commit 7c4c57f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/ciphernode/data/src/data_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub struct DataStore {
scope: Vec<u8>,
get: Recipient<Get>,
insert: Recipient<Insert>,
remove: Recipient<Remove>
remove: Recipient<Remove>,
}

impl DataStore {
Expand Down
2 changes: 1 addition & 1 deletion packages/ciphernode/data/src/in_mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub struct GetLog;
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub enum DataOp {
Insert(Insert),
Remove(Remove)
Remove(Remove),
}

pub struct InMemStore {
Expand Down
6 changes: 3 additions & 3 deletions packages/ciphernode/enclave/src/commands/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pub mod aggregator;
pub mod net;
pub mod password;
pub mod start;
pub mod wallet;
pub mod net;

use self::password::PasswordCommands;
use aggregator::AggregatorCommands;
Expand Down Expand Up @@ -36,6 +36,6 @@ pub enum Commands {
/// Networking related commands
Net {
#[command(subcommand)]
command: NetCommands
}
command: NetCommands,
},
}
5 changes: 2 additions & 3 deletions packages/ciphernode/enclave/src/commands/net/mod.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@

mod purge;
use anyhow::*;
use clap::Subcommand;
use config::AppConfig;

#[derive(Subcommand, Debug)]
pub enum NetCommands {
/// Purge the current peer ID from the database.
PurgeId
/// Purge the current peer ID from the database.
PurgeId,
}

pub async fn execute(command: NetCommands, config: AppConfig) -> Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion packages/ciphernode/enclave/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl Cli {
Commands::Password { command } => password::execute(command, config).await?,
Commands::Aggregator { command } => aggregator::execute(command, config).await?,
Commands::Wallet { command } => wallet::execute(command, config).await?,
Commands::Net { command } => net::execute(command, config).await?
Commands::Net { command } => net::execute(command, config).await?,
}

Ok(())
Expand Down

0 comments on commit 7c4c57f

Please sign in to comment.