Skip to content

Commit 2b04f19

Browse files
authored
Merge pull request #2787 from jkczyz/2023-12-onion-messenger-assert
Relax `OnionMessenger::peer_disconnected` assertion
2 parents 68e25c6 + a4f2c36 commit 2b04f19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/onion_message/messenger.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,8 @@ where
914914
fn peer_disconnected(&self, their_node_id: &PublicKey) {
915915
match self.message_recipients.lock().unwrap().remove(their_node_id) {
916916
Some(OnionMessageRecipient::ConnectedPeer(..)) => {},
917-
_ => debug_assert!(false),
917+
Some(_) => debug_assert!(false),
918+
None => {},
918919
}
919920
}
920921

0 commit comments

Comments
 (0)