Skip to content

Commit

Permalink
filter out null responses for missing nexthop values
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyuyureka committed Jan 18, 2024
1 parent ae434e6 commit 8bbbb75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ async fn query<T: Store>(

futures
})
.filter_map(|x| x)
.map(|result| {
let json = serde_json::to_string(&result).unwrap();
Ok::<_, Infallible>(format!("{}\n", json))
Expand Down

0 comments on commit 8bbbb75

Please sign in to comment.