소스 검색

减少重试次数

xueyiming 3 달 전
부모
커밋
9d62e71a94
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/utils/other/VideoDownloader.java

+ 1 - 1
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/utils/other/VideoDownloader.java

@@ -23,7 +23,7 @@ public class VideoDownloader {
 
     private static final long READ_TIMEOUT_SECONDS = 60; // 读取超时时间(秒)
 
-    private static final int MAX_RETRIES = 3;
+    private static final int MAX_RETRIES = 2;
 
     public static String downloadCover(String outVideoId, String platform, String coverUrl) {
         String path = generateCoverPath(platform, outVideoId);