Skip to content

Commit

Permalink
chore(limits): rename method PE-4754
Browse files Browse the repository at this point in the history
  • Loading branch information
matibat committed Oct 17, 2023
1 parent 3982133 commit a79f08d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/blocs/upload/limits.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ final mobilePrivateFileSizeLimit = const GiB(10).size;

final publicFileSafeSizeLimit = const GiB(5).size;

int computeBundleSizeLimit(bool isTurbo) =>
int getBundleSizeLimit(bool isTurbo) =>
isTurbo ? turboBundleSizeLimit : d2nBundleSizeLimit;

final d2nBundleSizeLimit = const GiB(65).size;
Expand Down
2 changes: 1 addition & 1 deletion lib/blocs/upload/models/upload_plan.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class UploadPlan {
}) async {
logger.i(
'Creating bundle handles from data item handles with a max number of files of $maxDataItemCount');
final int maxBundleSize = computeBundleSizeLimit(useTurbo);
final int maxBundleSize = getBundleSizeLimit(useTurbo);

final folderItems = await NextFitBundlePacker<UploadHandle>(
maxBundleSize: maxBundleSize,
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/upload_plan_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class UploadPlanUtils {
? RevisionAction.uploadNewVersion
: RevisionAction.create;

final bundleSizeLimit = computeBundleSizeLimit(useTurbo);
final bundleSizeLimit = getBundleSizeLimit(useTurbo);

if (fileSize < bundleSizeLimit) {
fileDataItemUploadHandles[fileEntity.id!] = FileDataItemUploadHandle(
Expand Down

0 comments on commit a79f08d

Please sign in to comment.