Skip to content

Commit

Permalink
fix(graphql): add timeout to _resolveQueryOnNetwork
Browse files Browse the repository at this point in the history
  • Loading branch information
ykuc7 committed Jul 18, 2024
1 parent 85881df commit 9f961e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/graphql/lib/src/core/query_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ class QueryManager {

try {
// execute the request through the provided link(s)
response = await link.request(request).first;
response =
await link.request(request).timeout(Duration(seconds: 5)).first;

queryResult = mapFetchResultToQueryResult(
response,
Expand Down

0 comments on commit 9f961e3

Please # to comment.