Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Resumable model download + bump cloud flare worker upload to 20% (#11237)

laurens-pilotc431b0b28203
diff --git a/mobile/apps/photos/lib/services/remote_assets_service.dart b/mobile/apps/photos/lib/services/remote_assets_service.dart
index e7ec42d674..e4feb37793 100644
--- a/mobile/apps/photos/lib/services/remote_assets_service.dart
+++ b/mobile/apps/photos/lib/services/remote_assets_service.dart
@@ -8,8 +8,6 @@ import "package:flutter/foundation.dart";
import "package:logging/logging.dart";
import "package:path_provider/path_provider.dart";
import "package:photos/core/network/network.dart";
-import "package:photos/service_locator.dart"
- show flagService, isLocalGalleryMode;
import "package:synchronized/synchronized.dart";
class RemoteAssetsService {
@@ -221,8 +219,7 @@ class RemoteAssetsService {
Dio get _dio => NetworkClient.instance.downloadDio;
- bool get _resumableDownloadsEnabled =>
- isLocalGalleryMode || flagService.internalUser;
+ bool get _resumableDownloadsEnabled => true;
Lock _lockFor(String remotePath) =>
_assetLocks.putIfAbsent(remotePath, Lock.new);
diff --git a/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart b/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart
index eb98654945..0bf1dda09c 100644
--- a/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart
+++ b/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart
@@ -15,7 +15,7 @@ class FlagService {
static const int _commentsFlag = 1 << 1;
static const int _videoStreamingFlag = 1 << 3;
static const int _castSessionsV2Flag = 1 << 4;
- static const int _cfUploadWorkerRolloutPercent = 10;
+ static const int _cfUploadWorkerRolloutPercent = 20;
static const int _rustMlRolloutPercent = 70;
static const String _userIdKey = "user_id";