Browse Source

code review

ehlxr 1 year ago
parent
commit
e1c9ab16be

+ 1 - 3
etl-core/src/main/java/com/tzld/crawler/etl/service/impl/EtlServiceImpl.java

@@ -121,8 +121,6 @@ public class EtlServiceImpl implements EtlService {
 
     private Executor pool;
 
-    private final String defaultFilePath = "/data";
-
     public EtlServiceImpl(StrategyHandlerService strategyHandlerService, AliyunOssManager aliyunOssManager,
                           LongVideoFeign longVideoFeign, CrawlerVideoMapper crawlerVideoMapper, SlsService slsService,
                           CrawlerVideoExtMapper crawlerVideoExtMapper, CrawlerUserV3Mapper crawlerUserV3Mapper) {
@@ -377,7 +375,7 @@ public class EtlServiceImpl implements EtlService {
         if (!localFile.exists() && (!localFile.mkdirs())) {
             log.error("mkdir dir [{}] failed!", localFilePath);
 
-            localFilePath = defaultFilePath;
+            localFilePath = "/data";
         }
 
         String finalLocalFilePath = localFilePath;