Преглед на файлове

增加文件下载放卡死

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) {