소스 검색

增加文件下载放卡死

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

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

@@ -105,7 +105,6 @@ public class VideoDownloader {
                 try (InputStream inputStream = connection.getInputStream();
                      OutputStream outputStream = Files.newOutputStream(file.toPath())) {
                     byte[] buffer = new byte[1024 * 1024];
-                    long lastReadTime = System.currentTimeMillis();
                     int bytesRead;
                     int downloadLength = 0;
                     while ((bytesRead = inputStream.read(buffer)) != -1) {