Skip to content

Commit

Permalink
Update zenoh/src/net/routing/hat/linkstate_peer/queries.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Joseph Perez <[email protected]>
  • Loading branch information
Mallets and wyfo authored Sep 6, 2024
1 parent c36f31c commit f595fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zenoh/src/net/routing/hat/linkstate_peer/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ impl HatQueriesTrait for HatCode {
}
}
}
route.sort_by_key(|qabl| qabl.info.map(|i| i.distance).unwrap_or(u16::MAX));
route.sort_by_key(|qabl| qabl.info.map_or(u16::MAX, |i| i.distance));
Arc::new(route)
}

Expand Down

0 comments on commit f595fed

Please sign in to comment.