Skip to content

Commit e0567ad

Browse files
committed
Accept BumpTransactionEvent in handle_event
1 parent 86fd9e7 commit e0567ad

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lightning/src/events/bump_transaction.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use core::ops::Deref;
1414

1515
use crate::chain::chaininterface::BroadcasterInterface;
1616
use crate::chain::ClaimId;
17-
use crate::events::Event;
1817
use crate::io_extras::sink;
1918
use crate::ln::chan_utils;
2019
use crate::ln::chan_utils::{
@@ -749,13 +748,8 @@ where
749748
Ok(())
750749
}
751750

752-
/// Handles all variants of [`BumpTransactionEvent`], immediately returning otherwise.
753-
pub fn handle_event(&self, event: &Event) {
754-
let event = if let Event::BumpTransaction(event) = event {
755-
event
756-
} else {
757-
return;
758-
};
751+
/// Handles all variants of [`BumpTransactionEvent`].
752+
pub fn handle_event(&self, event: &BumpTransactionEvent) {
759753
match event {
760754
BumpTransactionEvent::ChannelClose {
761755
claim_id, package_target_feerate_sat_per_1000_weight, commitment_tx,

0 commit comments

Comments
 (0)