Skip to content

Commit 79f1da5

Browse files
rename broadcast_notification to send_notifications_to_client_webhooks so it describes what it does more clearly
1 parent af00b42 commit 79f1da5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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();

0 commit comments

Comments
 (0)