Skip to content

Commit

Permalink
Merge pull request lightningdevkit#2787 from jkczyz/2023-12-onion-mes…
Browse files Browse the repository at this point in the history
…senger-assert

Relax `OnionMessenger::peer_disconnected` assertion
  • Loading branch information
tnull authored Dec 12, 2023
2 parents 68e25c6 + a4f2c36 commit 2b04f19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lightning/src/onion_message/messenger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,8 @@ where
fn peer_disconnected(&self, their_node_id: &PublicKey) {
match self.message_recipients.lock().unwrap().remove(their_node_id) {
Some(OnionMessageRecipient::ConnectedPeer(..)) => {},
_ => debug_assert!(false),
Some(_) => debug_assert!(false),
None => {},
}
}

Expand Down

0 comments on commit 2b04f19

Please sign in to comment.