Skip to content

Commit e6ca208

Browse files
committed
Prefactor: Rename StoredWebhook to Webhook
1 parent dc67685 commit e6ca208

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning-liquidity/src/lsps5/service.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub const PRUNE_STALE_WEBHOOKS_INTERVAL_DAYS: Duration = Duration::from_secs(24
4747

4848
/// A stored webhook.
4949
#[derive(Debug, Clone)]
50-
struct StoredWebhook {
50+
struct Webhook {
5151
_app_name: LSPS5AppName,
5252
url: LSPS5WebhookUrl,
5353
_counterparty_node_id: PublicKey,
@@ -117,7 +117,7 @@ where
117117
TP::Target: TimeProvider,
118118
{
119119
config: LSPS5ServiceConfig,
120-
webhooks: Mutex<HashMap<PublicKey, HashMap<LSPS5AppName, StoredWebhook>>>,
120+
webhooks: Mutex<HashMap<PublicKey, HashMap<LSPS5AppName, Webhook>>>,
121121
event_queue: Arc<EventQueue>,
122122
pending_messages: Arc<MessageQueue>,
123123
time_provider: TP,
@@ -189,7 +189,7 @@ where
189189
} else {
190190
(now, new_hash_map())
191191
};
192-
entry.insert(StoredWebhook {
192+
entry.insert(Webhook {
193193
_app_name: params.app_name.clone(),
194194
url: params.webhook.clone(),
195195
_counterparty_node_id: counterparty_node_id,
@@ -212,7 +212,7 @@ where
212212
});
213213
}
214214

215-
entry.insert(StoredWebhook {
215+
entry.insert(Webhook {
216216
_app_name: params.app_name.clone(),
217217
url: params.webhook.clone(),
218218
_counterparty_node_id: counterparty_node_id,

0 commit comments

Comments
 (0)