Skip to content

Commit

Permalink
Increase timeout for search
Browse files Browse the repository at this point in the history
  • Loading branch information
xKhronoz committed Jan 26, 2024
1 parent 7873c88 commit 73a5bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/components/ui/search/useSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const useSearch = (): UseSearchResult => {
return;
}
const response = await fetch(`${search_api}?query=${query}`, {
signal: AbortSignal.timeout(10000), // Abort the request if it takes longer than 10 seconds
signal: AbortSignal.timeout(60000), // Abort the request if it takes longer than 60 seconds
});
const data = await response.json();
setSearchResults(data);
Expand Down

0 comments on commit 73a5bd8

Please sign in to comment.