Skip to content

Commit

Permalink
add code comment to nexthop reverse dns
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-re-ka committed Dec 29, 2023
1 parent 7692bd5 commit eef7c25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ async fn query<T: Store>(

let stream = store
.get_routes(query)

// this little mess is required to attach reverse DNS resolutions for each nexthop, and
// resolve all the entries in parallel as they arrive, while also deduplicating them
.flat_map_unordered(None, move |route| {
enum StreamState {
SendRoute,
Expand Down

0 comments on commit eef7c25

Please sign in to comment.