Kaynağa Gözat

增加文件下载放卡死

xueyiming 1 ay önce
ebeveyn
işleme
d4e39f3700

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