Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
Signed-off-by: dzdidi <[email protected]>
  • Loading branch information
dzdidi committed Dec 9, 2024
1 parent 92faa7a commit c26982d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
9 changes: 3 additions & 6 deletions ldk-server-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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);
Expand Down
10 changes: 4 additions & 6 deletions ldk-server-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c26982d

Please sign in to comment.