From eef7c251904c9c39eacb0d680474901af4b7a9b4 Mon Sep 17 00:00:00 2001 From: Yureka Date: Fri, 29 Dec 2023 16:30:39 +0100 Subject: [PATCH] add code comment to nexthop reverse dns --- src/api.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api.rs b/src/api.rs index 969e6a6..c47d21d 100644 --- a/src/api.rs +++ b/src/api.rs @@ -116,6 +116,9 @@ async fn query( 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,