We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bfcf0f commit f05e2baCopy full SHA for f05e2ba
lightning/src/routing/network_graph.rs
@@ -1111,7 +1111,7 @@ impl NetworkGraph {
1111
let mut channels = self.channels.write().unwrap();
1112
let mut nodes = self.nodes.write().unwrap();
1113
match channels.entry(short_channel_id) {
1114
- BtreeEntry::Occupied(mut entry) => {
+ BtreeEntry::Occupied(_) => {
1115
// given that duplicate announcements are fine with a gossip sync scenario,
1116
// perhaps we could just return `Ok(())` here
1117
return Err(LightningError{err: "Already have knowledge of channel".to_owned(), action: ErrorAction::IgnoreDuplicateGossip});
0 commit comments