We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f44db76 commit 29df13cCopy full SHA for 29df13c
lightning/src/onion_message/messenger.rs
@@ -386,8 +386,11 @@ where
386
let node_announcement = network_graph
387
.node(&NodeId::from_pubkey(&first_node))
388
.and_then(|node_info| node_info.announcement_info.as_ref())
389
- .and_then(|announcement_info| announcement_info.announcement_message().cloned())
390
- .map(|node_announcement| node_announcement.contents);
+ .and_then(|announcement_info| {
+ announcement_info
391
+ .announcement_message()
392
+ .map(|node_announcement| &node_announcement.contents)
393
+ });
394
395
match node_announcement {
396
Some(node_announcement) if node_announcement.features.supports_onion_messages() => {
0 commit comments