Skip to content

Commit 3ca6cfb

Browse files
committed
Reduce timeout to 10 secounds
this wil close #456
1 parent dcef1a6 commit 3ca6cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/app/v3/net/fetch.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Future<List<TaskForC>> fetchTasks(String uuid, String encryptionSecret) async {
1414

1515
var response = await http.get(Uri.parse(url), headers: {
1616
"Content-Type": "application/json",
17-
}).timeout(const Duration(seconds: 10000));
17+
}).timeout(const Duration(milliseconds: 10000));
1818
debugPrint("Fetch tasks response: ${response.statusCode}");
1919
debugPrint("Fetch tasks body: ${response.body}");
2020
if (response.statusCode == 200) {

0 commit comments

Comments
 (0)