Skip to content

Commit

Permalink
Remove unused dependency: tokio (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
ok300 authored Mar 21, 2024
1 parent a123d32 commit a55b496
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 148 deletions.
86 changes: 0 additions & 86 deletions cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ clap = { version = "4.5.1", features = ["derive"] }
env_logger = "0.11"
log = "0.4.20"
rustyline = { version = "13.0.0", features = ["derive"] }
tokio = { version = "1.36.0", features = ["macros", "rt-multi-thread"] }
2 changes: 1 addition & 1 deletion cli/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Highlighter for CliHelper {
}
}

pub(crate) async fn handle_command(
pub(crate) fn handle_command(
_rl: &mut Editor<CliHelper, DefaultHistory>,
wallet: &Arc<Wallet>,
command: Command,
Expand Down
5 changes: 2 additions & 3 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ fn init_persistence(args: &Args) -> Result<CliPersistence> {
Ok(CliPersistence { data_dir })
}

#[tokio::main]
async fn main() -> Result<()> {
fn main() -> Result<()> {
env_logger::init();

let args = Args::parse();
Expand Down Expand Up @@ -65,7 +64,7 @@ async fn main() -> Result<()> {
println!("{}", cli_res.unwrap_err());
continue;
}
let res = handle_command(rl, &wallet, cli_res.unwrap()).await;
let res = handle_command(rl, &wallet, cli_res.unwrap());
show_results(res);
}
Err(ReadlineError::Interrupted) => {
Expand Down
56 changes: 0 additions & 56 deletions lib/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ lwk_wollet = "0.2.0"
rusqlite = "0.29"
rusqlite_migration = "1.0"
thiserror = "1.0.57"
tokio = "1.36.0"

0 comments on commit a55b496

Please sign in to comment.