From 8bbbb75ca377c822ddd835bd09f789db6e7e9e38 Mon Sep 17 00:00:00 2001 From: Yureka Date: Thu, 18 Jan 2024 13:15:55 +0100 Subject: [PATCH] filter out null responses for missing nexthop values --- src/api.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api.rs b/src/api.rs index 774883e..b7e4297 100644 --- a/src/api.rs +++ b/src/api.rs @@ -145,6 +145,7 @@ async fn query( futures }) + .filter_map(|x| x) .map(|result| { let json = serde_json::to_string(&result).unwrap(); Ok::<_, Infallible>(format!("{}\n", json))