@@ -339,7 +339,7 @@ where
339
339
/// [`WebhookNotificationMethod::LSPS5PaymentIncoming`]: super::msgs::WebhookNotificationMethod::LSPS5PaymentIncoming
340
340
pub fn notify_payment_incoming ( & self , client_id : PublicKey ) -> Result < ( ) , LSPS5ProtocolError > {
341
341
let notification = WebhookNotification :: payment_incoming ( ) ;
342
- self . broadcast_notification ( client_id, notification)
342
+ self . send_notifications_to_client_webhooks ( client_id, notification)
343
343
}
344
344
345
345
/// Notify that an HTLC or other time-bound contract is expiring soon.
@@ -359,7 +359,7 @@ where
359
359
& self , client_id : PublicKey , timeout : u32 ,
360
360
) -> Result < ( ) , LSPS5ProtocolError > {
361
361
let notification = WebhookNotification :: expiry_soon ( timeout) ;
362
- self . broadcast_notification ( client_id, notification)
362
+ self . send_notifications_to_client_webhooks ( client_id, notification)
363
363
}
364
364
365
365
/// Notify that the LSP intends to manage liquidity (e.g. close or splice) on client channels.
@@ -376,7 +376,7 @@ where
376
376
& self , client_id : PublicKey ,
377
377
) -> Result < ( ) , LSPS5ProtocolError > {
378
378
let notification = WebhookNotification :: liquidity_management_request ( ) ;
379
- self . broadcast_notification ( client_id, notification)
379
+ self . send_notifications_to_client_webhooks ( client_id, notification)
380
380
}
381
381
382
382
/// Notify that the client has one or more pending BOLT Onion Messages.
@@ -393,10 +393,10 @@ where
393
393
& self , client_id : PublicKey ,
394
394
) -> Result < ( ) , LSPS5ProtocolError > {
395
395
let notification = WebhookNotification :: onion_message_incoming ( ) ;
396
- self . broadcast_notification ( client_id, notification)
396
+ self . send_notifications_to_client_webhooks ( client_id, notification)
397
397
}
398
398
399
- fn broadcast_notification (
399
+ fn send_notifications_to_client_webhooks (
400
400
& self , client_id : PublicKey , notification : WebhookNotification ,
401
401
) -> Result < ( ) , LSPS5ProtocolError > {
402
402
let mut webhooks = self . webhooks . lock ( ) . unwrap ( ) ;
0 commit comments