Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
amackillop committed Nov 7, 2024
1 parent fa73196 commit 125a6a3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
6 changes: 4 additions & 2 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
// accordance with one or both of these licenses.

use crate::chain::{ChainSource, DEFAULT_ESPLORA_SERVER_URL};
use crate::config::{default_user_config, Config, EsploraSyncConfig, LoggingConfig, WALLET_KEYS_SEED_LEN};
use crate::config::{
default_user_config, Config, EsploraSyncConfig, LoggingConfig, WALLET_KEYS_SEED_LEN,
};

use crate::connection::ConnectionManager;
use crate::event::EventQueue;
Expand All @@ -29,8 +31,8 @@ use crate::types::{
};
use crate::wallet::persist::KVStoreWalletPersister;
use crate::wallet::Wallet;
use crate::Node;
use crate::{io, NodeMetrics};
use crate::{LogLevel, Node};

use lightning::chain::{chainmonitor, BestBlock, Watch};
use lightning::io::Cursor;
Expand Down
5 changes: 1 addition & 4 deletions src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ pub struct LdkNodeLogger {

impl LdkNodeLogger {
/// Creates a new `LdkNodeLogger`.
pub fn new(
level: Level,
writer: Box<dyn Fn(&Record) + Send + Sync>,
) -> Result<Self, ()> {
pub fn new(level: Level, writer: Box<dyn Fn(&Record) + Send + Sync>) -> Result<Self, ()> {
Ok(Self { level, writer })
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,4 +347,4 @@ pub struct PeerDetails {
pub is_persisted: bool,
/// Indicates whether we currently have an active connection with the peer.
pub is_connected: bool,
}
}
3 changes: 1 addition & 2 deletions tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
use ldk_node::config::{Config, EsploraSyncConfig, LoggingConfig};
use ldk_node::io::sqlite_store::SqliteStore;
use ldk_node::payment::{PaymentDirection, PaymentKind, PaymentStatus};
use ldk_node::{Builder, Event, LightningBalance, LogLevel, Node, NodeError,
PendingSweepBalance};
use ldk_node::{Builder, Event, LightningBalance, LogLevel, Node, NodeError, PendingSweepBalance};

use lightning::ln::msgs::SocketAddress;
use lightning::ln::{PaymentHash, PaymentPreimage};
Expand Down

0 comments on commit 125a6a3

Please sign in to comment.