Skip to content

Commit a98c494

Browse files
fixup: stop handling listwebhooksfailed. start using new_with_time_provider methods
1 parent 4b57040 commit a98c494

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

lightning-liquidity/src/lsps0/ser.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -468,9 +468,6 @@ impl Serialize for LSPSMessage {
468468
LSPS5Response::ListWebhooks(result) => {
469469
jsonrpc_object.serialize_field(JSONRPC_RESULT_FIELD_KEY, result)?
470470
},
471-
LSPS5Response::ListWebhooksError(error) => {
472-
jsonrpc_object.serialize_field(JSONRPC_ERROR_FIELD_KEY, error)?
473-
},
474471
LSPS5Response::RemoveWebhook(result) => {
475472
jsonrpc_object.serialize_field(JSONRPC_RESULT_FIELD_KEY, result)?
476473
},
@@ -739,12 +736,7 @@ impl<'de, 'a> Visitor<'de> for LSPSMessageVisitor<'a> {
739736
}
740737
},
741738
LSPSMethod::LSPS5ListWebhooks => {
742-
if let Some(error) = error {
743-
Ok(LSPSMessage::LSPS5(LSPS5Message::Response(
744-
id,
745-
LSPS5Response::ListWebhooksError(error.into()),
746-
)))
747-
} else if let Some(result) = result {
739+
if let Some(result) = result {
748740
let response =
749741
serde_json::from_value(result).map_err(de::Error::custom)?;
750742
Ok(LSPSMessage::LSPS5(LSPS5Message::Response(

lightning-liquidity/src/manager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ where
253253

254254
let lsps5_client_handler = client_config.as_ref().and_then(|config| {
255255
config.lsps5_client_config.as_ref().map(|config| {
256-
LSPS5ClientHandler::new(
256+
LSPS5ClientHandler::new_with_time_provider(
257257
entropy_source.clone(),
258258
Arc::clone(&pending_messages),
259259
Arc::clone(&pending_events),
@@ -271,7 +271,7 @@ where
271271
supported_protocols.push(number);
272272
}
273273

274-
return LSPS5ServiceHandler::new(
274+
return LSPS5ServiceHandler::new_with_time_provider(
275275
Arc::clone(&pending_events),
276276
Arc::clone(&pending_messages),
277277
channel_manager.clone(),

0 commit comments

Comments
 (0)