Skip to content

Commit

Permalink
Bump lock timeout durations
Browse files Browse the repository at this point in the history
  • Loading branch information
bdmendes committed Oct 4, 2023
1 parent a259460 commit fb81ad1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion uni/lib/controller/local_storage/app_database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AppDatabase {
List<String> commands;

/// The lock timeout for database operations.
static const Duration lockTimeout = Duration(seconds: 10);
static const Duration lockTimeout = Duration(seconds: 5);

/// A lock that synchronizes all database insertions.
static Lock lock = Lock();
Expand Down
2 changes: 1 addition & 1 deletion uni/lib/controller/networking/network_router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class NetworkRouter {
static http.Client? httpClient;

/// The timeout for Sigarra login requests.
static const Duration _requestTimeout = Duration(seconds: 10);
static const Duration _requestTimeout = Duration(seconds: 30);

/// The mutual exclusion primitive for login requests.
static final Lock _loginLock = Lock();
Expand Down
2 changes: 1 addition & 1 deletion uni/lib/model/providers/state_provider_notifier.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ abstract class StateProviderNotifier extends ChangeNotifier {
_initializedFromStorage = !initialize,
_initializedFromRemote = !initialize;

static const lockTimeout = Duration(seconds: 10);
static const lockTimeout = Duration(seconds: 30);
final Lock _lock = Lock();
final RequestStatus _initialStatus;
RequestStatus _status;
Expand Down
24 changes: 12 additions & 12 deletions uni/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -415,18 +415,18 @@ packages:
dependency: "direct main"
description:
name: flutter_map
sha256: "52c65a977daae42f9aae6748418dd1535eaf27186e9bac9bf431843082bc75a3"
sha256: "5286f72f87deb132daa1489442d6cc46e986fc105cb727d9ae1b602b35b1d1f3"
url: "https://pub.dev"
source: hosted
version: "4.0.0"
version: "5.0.0"
flutter_map_marker_popup:
dependency: "direct main"
description:
name: flutter_map_marker_popup
sha256: d4e22a00dd46f95a6f54c60b92950bd6f41021ca36629b1cf3fa0bf4fd39f421
sha256: be209c68b19d4c10d9a2f5911e45f7c579624c43a353adb9bf0f2fec0cf30b8c
url: "https://pub.dev"
source: hosted
version: "5.0.0"
version: "5.2.0"
flutter_markdown:
dependency: "direct main"
description:
Expand Down Expand Up @@ -497,10 +497,10 @@ packages:
dependency: "direct main"
description:
name: http
sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2"
sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525"
url: "https://pub.dev"
source: hosted
version: "0.13.6"
version: "1.1.0"
http_multi_server:
dependency: transitive
description:
Expand Down Expand Up @@ -561,10 +561,10 @@ packages:
dependency: "direct main"
description:
name: latlong2
sha256: "08ef7282ba9f76e8495e49e2dc4d653015ac929dce5f92b375a415d30b407ea0"
sha256: "18712164760cee655bc790122b0fd8f3d5b3c36da2cb7bf94b68a197fbb0811b"
url: "https://pub.dev"
source: hosted
version: "0.8.2"
version: "0.9.0"
lists:
dependency: transitive
description:
Expand All @@ -577,10 +577,10 @@ packages:
dependency: "direct main"
description:
name: logger
sha256: "7ad7215c15420a102ec687bb320a7312afd449bac63bfb1c60d9787c27b9767f"
sha256: "6bbb9d6f7056729537a4309bda2e74e18e5d9f14302489cc1e93f33b3fe32cac"
url: "https://pub.dev"
source: hosted
version: "1.4.0"
version: "2.0.2+1"
logging:
dependency: transitive
description:
Expand Down Expand Up @@ -698,10 +698,10 @@ packages:
dependency: transitive
description:
name: package_info_plus
sha256: "10259b111176fba5c505b102e3a5b022b51dd97e30522e906d6922c745584745"
sha256: "6ff267fcd9d48cb61c8df74a82680e8b82e940231bb5f68356672fde0397334a"
url: "https://pub.dev"
source: hosted
version: "3.1.2"
version: "4.1.0"
package_info_plus_platform_interface:
dependency: transitive
description:
Expand Down

0 comments on commit fb81ad1

Please sign in to comment.