Skip to content

Commit f05e2ba

Browse files
committed
remove unused variable
1 parent 3bfcf0f commit f05e2ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/network_graph.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ impl NetworkGraph {
11111111
let mut channels = self.channels.write().unwrap();
11121112
let mut nodes = self.nodes.write().unwrap();
11131113
match channels.entry(short_channel_id) {
1114-
BtreeEntry::Occupied(mut entry) => {
1114+
BtreeEntry::Occupied(_) => {
11151115
// given that duplicate announcements are fine with a gossip sync scenario,
11161116
// perhaps we could just return `Ok(())` here
11171117
return Err(LightningError{err: "Already have knowledge of channel".to_owned(), action: ErrorAction::IgnoreDuplicateGossip});

0 commit comments

Comments
 (0)