Skip to content

Commit

Permalink
Add dotenv for networking timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
c3bryant committed Aug 23, 2024
1 parent af0206f commit c549a42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/app_networking.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'dart:async';
import 'dart:ffi';

import 'package:campus_mobile_experimental/app_constants.dart';
import 'package:campus_mobile_experimental/app_styles.dart';
Expand All @@ -15,7 +16,7 @@ class NetworkHelper {
static const int SSO_REFRESH_MAX_RETRIES = 3;
static const int SSO_REFRESH_RETRY_INCREMENT = 5000;
static const int SSO_REFRESH_RETRY_MULTIPLIER = 3;
static const int DEFAULT_TIMEOUT = 60000;
static final int DEFAULT_TIMEOUT = int.parse(dotenv.get('DEFAULT_TIMEOUT'));

Future<dynamic> fetchData(String url) async {
Dio dio = new Dio();
Expand Down

0 comments on commit c549a42

Please sign in to comment.