Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelanou committed Dec 19, 2024
1 parent 6a1003e commit 141350a
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 @@ -265,7 +265,8 @@ class QueryManager {
// Resolve the request timeout by first checking the options of this specific request,
// then the manager level requestTimeout.
// Only apply the timeout if it is non-null.
if (options.queryRequestTimeout ?? this.requestTimeout case final Duration timeout) {
final timeout = options.queryRequestTimeout ?? this.requestTimeout;
if (timeout case final Duration timeout) {
responseStream = responseStream.timeout(timeout);
}
response = await responseStream.first;
Expand Down

0 comments on commit 141350a

Please sign in to comment.