Skip to content

Commit

Permalink
Update zenoh/src/net/routing/hat/p2p_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 f595fed commit b5f820b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zenoh/src/net/routing/hat/p2p_peer/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,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 b5f820b

Please sign in to comment.