Skip to content

Commit

Permalink
fix: fix time out
Browse files Browse the repository at this point in the history
  • Loading branch information
francis-du committed Jan 20, 2021
1 parent a9031b8 commit 195a24c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/handler/get_handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ pub async fn search(req: Request<()>) -> tide::Result {
for res in results {
let page = wiki.page_from_title(res.to_string());
let title = page.get_title().unwrap();
let links_iter = page
.get_links()
.unwrap()
.filter(|x| x.title.clone().contains(words.clone()));
let links_iter = page.get_links().unwrap();

let id = match page.get_pageid().unwrap().parse::<u32>() {
Ok(i) => i,
Expand Down

0 comments on commit 195a24c

Please sign in to comment.