Skip to content

Commit

Permalink
download timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangtian616 committed Dec 31, 2023
1 parent e1d122a commit 7d82af0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class SettingPreferencePage extends StatelessWidget {
data: SliderTheme.of(context).copyWith(showValueIndicator: ShowValueIndicator.always),
child: Slider(
min: 20,
max: 200,
max: 300,
label: PreferenceSetting.drawerGestureEdgeWidth.value.toString(),
value: PreferenceSetting.drawerGestureEdgeWidth.value.toDouble(),
onChanged: (value) {
Expand Down
1 change: 1 addition & 0 deletions lib/src/service/gallery_download_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,7 @@ class GalleryDownloadService extends GetxController with GridBasePageServiceMixi
() => EHRequest.download(
url: image.url,
path: path,
receiveTimeout: 10 * 60 * 1000,
cancelToken: galleryDownloadInfo.cancelToken,
onReceiveProgress: (int count, int total) => galleryDownloadInfo.speedComputer.updateProgress(count, total, serialNo),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/src/service/tag_translation_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class TagTranslationService extends GetxService {
() => EHRequest.download(
url: downloadUrl,
path: savePath,
receiveTimeout: 3 * 60 * 1000,
receiveTimeout: 10 * 60 * 1000,
onReceiveProgress: (count, total) => downloadProgress.value = (count / 1024 / 1024).toStringAsFixed(2) + ' MB',
),
maxAttempts: 5,
Expand Down

0 comments on commit 7d82af0

Please sign in to comment.