Skip to content

Commit aa4f7dd

Browse files
committed
Remove rustfmt::skip from ChannelManager::new
1 parent b8ac34e commit aa4f7dd

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

lightning/src/ln/channelmanager.rs

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3420,7 +3420,6 @@ impl<
34203420
/// [`block_connected`]: chain::Listen::block_connected
34213421
/// [`blocks_disconnected`]: chain::Listen::blocks_disconnected
34223422
/// [`params.best_block.block_hash`]: chain::BestBlock::block_hash
3423-
#[rustfmt::skip]
34243423
pub fn new(
34253424
fee_est: F, chain_monitor: M, tx_broadcaster: T, router: R, message_router: MR, logger: L,
34263425
entropy_source: ES, node_signer: NS, signer_provider: SP, config: UserConfig,
@@ -3436,9 +3435,15 @@ impl<
34363435
let our_network_pubkey = node_signer.get_node_id(Recipient::Node).unwrap();
34373436

34383437
let flow = OffersMessageFlow::new(
3439-
ChainHash::using_genesis_block(params.network), params.best_block,
3440-
our_network_pubkey, current_timestamp, expanded_inbound_key,
3441-
node_signer.get_receive_auth_key(), secp_ctx.clone(), message_router, logger.clone(),
3438+
ChainHash::using_genesis_block(params.network),
3439+
params.best_block,
3440+
our_network_pubkey,
3441+
current_timestamp,
3442+
expanded_inbound_key,
3443+
node_signer.get_receive_auth_key(),
3444+
secp_ctx.clone(),
3445+
message_router,
3446+
logger.clone(),
34423447
);
34433448

34443449
ChannelManager {
@@ -3456,7 +3461,10 @@ impl<
34563461
pending_outbound_payments: OutboundPayments::new(new_hash_map()),
34573462
forward_htlcs: Mutex::new(new_hash_map()),
34583463
decode_update_add_htlcs: Mutex::new(new_hash_map()),
3459-
claimable_payments: Mutex::new(ClaimablePayments { claimable_payments: new_hash_map(), pending_claiming_payments: new_hash_map() }),
3464+
claimable_payments: Mutex::new(ClaimablePayments {
3465+
claimable_payments: new_hash_map(),
3466+
pending_claiming_payments: new_hash_map(),
3467+
}),
34603468
pending_intercepted_htlcs: Mutex::new(new_hash_map()),
34613469
short_to_chan_info: FairRwLock::new(new_hash_map()),
34623470

0 commit comments

Comments
 (0)