Skip to content

Commit bc5a18b

Browse files
authored
Merge pull request #3963 from martinsaposnic/lsps5-small-followups
LSPS5 - small follow ups
2 parents ed42300 + 79f1da5 commit bc5a18b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lightning-liquidity/src/lsps5/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub const DEFAULT_RESPONSE_MAX_AGE_SECS: u64 = 3600;
4343
#[derive(Debug, Clone)]
4444
/// Configuration for the LSPS5 client
4545
pub struct LSPS5ClientConfig {
46-
/// Maximum age in seconds for cached responses (default: 3600 - 1 hour).
46+
/// Maximum age in seconds for cached responses (default: [`DEFAULT_RESPONSE_MAX_AGE_SECS`]).
4747
pub response_max_age_secs: Duration,
4848
}
4949

lightning-liquidity/src/lsps5/service.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ where
339339
/// [`WebhookNotificationMethod::LSPS5PaymentIncoming`]: super::msgs::WebhookNotificationMethod::LSPS5PaymentIncoming
340340
pub fn notify_payment_incoming(&self, client_id: PublicKey) -> Result<(), LSPS5ProtocolError> {
341341
let notification = WebhookNotification::payment_incoming();
342-
self.broadcast_notification(client_id, notification)
342+
self.send_notifications_to_client_webhooks(client_id, notification)
343343
}
344344

345345
/// Notify that an HTLC or other time-bound contract is expiring soon.
@@ -359,7 +359,7 @@ where
359359
&self, client_id: PublicKey, timeout: u32,
360360
) -> Result<(), LSPS5ProtocolError> {
361361
let notification = WebhookNotification::expiry_soon(timeout);
362-
self.broadcast_notification(client_id, notification)
362+
self.send_notifications_to_client_webhooks(client_id, notification)
363363
}
364364

365365
/// Notify that the LSP intends to manage liquidity (e.g. close or splice) on client channels.
@@ -376,7 +376,7 @@ where
376376
&self, client_id: PublicKey,
377377
) -> Result<(), LSPS5ProtocolError> {
378378
let notification = WebhookNotification::liquidity_management_request();
379-
self.broadcast_notification(client_id, notification)
379+
self.send_notifications_to_client_webhooks(client_id, notification)
380380
}
381381

382382
/// Notify that the client has one or more pending BOLT Onion Messages.
@@ -393,10 +393,10 @@ where
393393
&self, client_id: PublicKey,
394394
) -> Result<(), LSPS5ProtocolError> {
395395
let notification = WebhookNotification::onion_message_incoming();
396-
self.broadcast_notification(client_id, notification)
396+
self.send_notifications_to_client_webhooks(client_id, notification)
397397
}
398398

399-
fn broadcast_notification(
399+
fn send_notifications_to_client_webhooks(
400400
&self, client_id: PublicKey, notification: WebhookNotification,
401401
) -> Result<(), LSPS5ProtocolError> {
402402
let mut webhooks = self.webhooks.lock().unwrap();

lightning-liquidity/src/manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ where
299299
channel_manager.clone(),
300300
node_signer,
301301
config.clone(),
302-
time_provider.clone(),
302+
time_provider,
303303
)
304304
})
305305
});

0 commit comments

Comments
 (0)