Skip to content

Commit f56b565

Browse files
Fmt Botgithub-actions[bot]
authored andcommitted
2025-11-30 automated rustfmt nightly
1 parent 7cbd226 commit f56b565

File tree

8 files changed

+15
-20
lines changed

8 files changed

+15
-20
lines changed

src/builder.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use bip39::Mnemonic;
1919
use bitcoin::bip32::{ChildNumber, Xpriv};
2020
use bitcoin::secp256k1::PublicKey;
2121
use bitcoin::{BlockHash, Network};
22+
use chrono::Local;
2223
use lightning::chain::{chainmonitor, BestBlock, Watch};
2324
use lightning::io::Cursor;
2425
use lightning::ln::channelmanager::{self, ChainParameters, ChannelManagerReadArgs};
@@ -40,7 +41,6 @@ use lightning::util::persist::{
4041
SCORER_PERSISTENCE_KEY, SCORER_PERSISTENCE_PRIMARY_NAMESPACE,
4142
SCORER_PERSISTENCE_SECONDARY_NAMESPACE,
4243
};
43-
4444
use lightning::util::ser::ReadableArgs;
4545
use lightning::util::sweep::OutputSweeper;
4646
use lightning_persister::fs_store::FilesystemStore;
@@ -84,7 +84,6 @@ use crate::types::{
8484
use crate::wallet::persist::KVStoreWalletPersister;
8585
use crate::wallet::Wallet;
8686
use crate::{Node, NodeMetrics};
87-
use chrono::Local;
8887

8988
const VSS_HARDENED_CHILD_INDEX: u32 = 877;
9089
const VSS_LNURL_AUTH_HARDENED_CHILD_INDEX: u32 = 138;

src/config.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,22 @@ pub(crate) const NODE_ANN_BCAST_INTERVAL: Duration = Duration::from_secs(60 * 60
7575
pub(crate) const WALLET_SYNC_INTERVAL_MINIMUM_SECS: u64 = 10;
7676

7777
// The timeout after which we abort a wallet syncing operation.
78-
pub(crate) const BDK_WALLET_SYNC_TIMEOUT_SECS: u64 = 90; //40; //20; // Alby: larger timeouts are needed after multiple FC
78+
pub(crate) const BDK_WALLET_SYNC_TIMEOUT_SECS: u64 = 90; // 40; //20; // Alby: larger timeouts are needed after multiple FC
7979

8080
// The timeout after which we abort a wallet syncing operation.
81-
pub(crate) const LDK_WALLET_SYNC_TIMEOUT_SECS: u64 = 90; //40; //10; // Alby: larger timeouts are needed after multiple FC
81+
pub(crate) const LDK_WALLET_SYNC_TIMEOUT_SECS: u64 = 90; // 40; //10; // Alby: larger timeouts are needed after multiple FC
8282

8383
// The timeout after which we give up waiting on LDK's event handler to exit on shutdown.
8484
pub(crate) const LDK_EVENT_HANDLER_SHUTDOWN_TIMEOUT_SECS: u64 = 60; // 30;
8585

8686
// The timeout after which we give up waiting on a background task to exit on shutdown.
87-
pub(crate) const BACKGROUND_TASK_SHUTDOWN_TIMEOUT_SECS: u64 = 20; //5;
87+
pub(crate) const BACKGROUND_TASK_SHUTDOWN_TIMEOUT_SECS: u64 = 20; // 5;
8888

8989
// The timeout after which we abort a fee rate cache update operation.
90-
pub(crate) const FEE_RATE_CACHE_UPDATE_TIMEOUT_SECS: u64 = 10; //5;
90+
pub(crate) const FEE_RATE_CACHE_UPDATE_TIMEOUT_SECS: u64 = 10; // 5;
9191

9292
// The timeout after which we abort a transaction broadcast operation.
93-
pub(crate) const TX_BROADCAST_TIMEOUT_SECS: u64 = 10; //5;
93+
pub(crate) const TX_BROADCAST_TIMEOUT_SECS: u64 = 10; // 5;
9494

9595
// The timeout after which we abort a RGS sync operation.
9696
pub(crate) const RGS_SYNC_TIMEOUT_SECS: u64 = 5;

src/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ where
10561056
preimage: Some(Some(payment_preimage)),
10571057
fee_paid_msat: Some(fee_paid_msat),
10581058
status: Some(PaymentStatus::Succeeded),
1059-
//fee_msat: Some(fee_paid_msat),
1059+
// fee_msat: Some(fee_paid_msat),
10601060
..PaymentDetailsUpdate::new(payment_id)
10611061
};
10621062

src/io/sqlite_store/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ use std::sync::atomic::{AtomicU64, Ordering};
1616
use std::sync::{Arc, Mutex};
1717

1818
use lightning::io;
19-
2019
use lightning::util::persist::{
2120
KVStore, KVStoreSync, NETWORK_GRAPH_PERSISTENCE_KEY,
2221
NETWORK_GRAPH_PERSISTENCE_PRIMARY_NAMESPACE, NETWORK_GRAPH_PERSISTENCE_SECONDARY_NAMESPACE,

src/io/vss_store.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -685,11 +685,11 @@ impl VssStoreInner {
685685

686686
let key_value = KeyValue { key: obfuscated_key, version: -1, value: vec![] };
687687
// Alby: disable lazy deletes (can cause a conflict error in the VSS server)
688-
/*if lazy {
689-
let mut pending_lazy_deletes = self.pending_lazy_deletes.lock().unwrap();
690-
pending_lazy_deletes.push(key_value);
691-
return Ok(());
692-
}*/
688+
// if lazy {
689+
// let mut pending_lazy_deletes = self.pending_lazy_deletes.lock().unwrap();
690+
// pending_lazy_deletes.push(key_value);
691+
// return Ok(());
692+
// }
693693

694694
self.execute_locked_write(inner_lock_ref, locking_key, version, async move || {
695695
let request =

src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ use payment::{
153153
UnifiedQrPayment,
154154
};
155155
use peer_store::{PeerInfo, PeerStore};
156-
157156
use rand::Rng;
158157
use runtime::Runtime;
159158
use types::{
@@ -170,7 +169,6 @@ pub use {
170169
};
171170

172171
use crate::scoring::setup_background_pathfinding_scores_sync;
173-
174172
use crate::types::KeyValue;
175173
pub use crate::types::{MigrateStorage, ResetState, TlvEntry};
176174

src/payment/store.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
// http://opensource.org/licenses/MIT>, at your option. You may not use this file except in
66
// accordance with one or both of these licenses.
77

8-
use crate::types::TlvEntry;
9-
108
use std::time::{Duration, SystemTime, UNIX_EPOCH};
119

1210
use bitcoin::{BlockHash, Txid};
@@ -23,6 +21,7 @@ use lightning_types::string::UntrustedString;
2321

2422
use crate::data_store::{StorableObject, StorableObjectId, StorableObjectUpdate};
2523
use crate::hex_utils;
24+
use crate::types::TlvEntry;
2625

2726
/// Represents a payment.
2827
#[derive(Clone, Debug, PartialEq, Eq)]
@@ -570,7 +569,7 @@ pub(crate) struct PaymentDetailsUpdate {
570569
pub counterparty_skimmed_fee_msat: Option<Option<u64>>,
571570
pub direction: Option<PaymentDirection>,
572571
pub status: Option<PaymentStatus>,
573-
//pub fee_msat: Option<Option<u64>>, // old Alby field
572+
// pub fee_msat: Option<Option<u64>>, // old Alby field
574573
pub confirmation_status: Option<ConfirmationStatus>,
575574
}
576575

tests/common/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ macro_rules! expect_channel_ready_event {
100100
pub(crate) use expect_channel_ready_event;
101101

102102
macro_rules! expect_splice_pending_event {
103-
($node: expr, $counterparty_node_id: expr) => {{
103+
($node:expr, $counterparty_node_id:expr) => {{
104104
match $node.next_event_async().await {
105105
ref e @ Event::SplicePending { new_funding_txo, counterparty_node_id, .. } => {
106106
println!("{} got event {:?}", $node.node_id(), e);

0 commit comments

Comments
 (0)