Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused dependency: tokio #46

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"