diff --git a/ldk-server-cli/src/main.rs b/ldk-server-cli/src/main.rs index fec25a2..140df23 100644 --- a/ldk-server-cli/src/main.rs +++ b/ldk-server-cli/src/main.rs @@ -2,12 +2,9 @@ use clap::{Parser, Subcommand}; use ldk_server_client::client::LdkServerClient; use ldk_server_client::error::LdkServerError; use ldk_server_client::ldk_server_protos::api::{ - GetNodeInfoRequest, - GetBalancesRequest, Bolt11ReceiveRequest, Bolt11SendRequest, Bolt12ReceiveRequest, Bolt12SendRequest, + GetBalancesRequest, GetNodeInfoRequest, ListChannelsRequest, ListPaymentsRequest, OnchainReceiveRequest, OnchainSendRequest, OpenChannelRequest, - ListChannelsRequest, - ListPaymentsRequest, }; #[derive(Parser, Debug)] @@ -90,10 +87,10 @@ async fn main() { match cli.command { Commands::GetNodeInfo => { - handle_response(client.get_node_info(GetNodeInfoRequest {}).await); + handle_response(client.get_node_info(GetNodeInfoRequest {}).await); }, Commands::GetBalances => { - handle_response(client.get_balances(GetBalancesRequest {}).await); + handle_response(client.get_balances(GetBalancesRequest {}).await); }, Commands::OnchainReceive => { handle_response(client.onchain_receive(OnchainReceiveRequest {}).await); diff --git a/ldk-server-client/src/client.rs b/ldk-server-client/src/client.rs index 1538742..2bb74f2 100644 --- a/ldk-server-client/src/client.rs +++ b/ldk-server-client/src/client.rs @@ -2,14 +2,12 @@ use prost::Message; use crate::error::LdkServerError; use ldk_server_protos::api::{ - GetNodeInfoRequest, GetNodeInfoResponse, - GetBalancesRequest, GetBalancesResponse, Bolt11ReceiveRequest, Bolt11ReceiveResponse, Bolt11SendRequest, Bolt11SendResponse, Bolt12ReceiveRequest, Bolt12ReceiveResponse, Bolt12SendRequest, Bolt12SendResponse, - CloseChannelRequest, CloseChannelResponse, ListChannelsRequest, ListChannelsResponse, - OnchainReceiveRequest, OnchainReceiveResponse, OnchainSendRequest, OnchainSendResponse, - OpenChannelRequest, OpenChannelResponse, - ListPaymentsRequest, ListPaymentsResponse, + CloseChannelRequest, CloseChannelResponse, GetBalancesRequest, GetBalancesResponse, + GetNodeInfoRequest, GetNodeInfoResponse, ListChannelsRequest, ListChannelsResponse, + ListPaymentsRequest, ListPaymentsResponse, OnchainReceiveRequest, OnchainReceiveResponse, + OnchainSendRequest, OnchainSendResponse, OpenChannelRequest, OpenChannelResponse, }; use reqwest::header::CONTENT_TYPE; use reqwest::Client;