mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
Merge pull request #2787 from jkczyz/2023-12-onion-messenger-assert
Relax `OnionMessenger::peer_disconnected` assertion
This commit is contained in:
commit
2b04f193b9
1 changed files with 2 additions and 1 deletions
|
@ -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 => {},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue