Skip to content

Commit 7787e76

Browse files
committed
Test ci
1 parent 1a5d3b4 commit 7787e76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/routing_handler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl RoutingHandler {
167167

168168
if !self.flood_seen.insert(flood_session) || self.neighbors.len() == 1 {
169169
// generate flood response
170-
let route= if let Ok(path) = self.network_view.find_path(flood_request.initiator_id) {
170+
let route= if let Some(path) = self.network_view.find_path(flood_request.initiator_id) {
171171
SourceRoutingHeader::new(path, 1)
172172
} else {
173173
let mut route: Vec<_> = flood_request.path_trace
@@ -263,7 +263,7 @@ impl RoutingHandler {
263263
Ok(_) => {
264264
packet_sent = true;
265265
},
266-
Err(NetworkError::SendError(t)) => {
266+
Err(NetworkError::SendError(_t)) => {
267267
// If the first hop is not a neighbor, remove it and try again
268268
if let Some(first_hop) = packet.routing_header.hops.get(1) {
269269
self.remove_neighbor(*first_hop);

0 commit comments

Comments
 (0)