From 24c3e28bba6f046967550d1f522b45d6521ea611 Mon Sep 17 00:00:00 2001 From: linwl <304115325@qq.com> Date: Mon, 18 Jan 2021 21:39:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=B0docker=E5=A4=96?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/DipperDataAsyncTaskServiceImpl.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/com/telpo/dipperposition/service/impl/DipperDataAsyncTaskServiceImpl.java b/src/main/java/com/telpo/dipperposition/service/impl/DipperDataAsyncTaskServiceImpl.java index 4c049bf..1b0e665 100644 --- a/src/main/java/com/telpo/dipperposition/service/impl/DipperDataAsyncTaskServiceImpl.java +++ b/src/main/java/com/telpo/dipperposition/service/impl/DipperDataAsyncTaskServiceImpl.java @@ -50,9 +50,6 @@ public class DipperDataAsyncTaskServiceImpl implements IDipperDataAsyncTaskServi log.error("获取星历数据错误,取不到星历数据。"); } else { // 保存到DB或者缓存 - if (redisUtil == null) { - redisUtil = new RedisUtil(); - } redisUtil.set(DIPPER_DATA_KEY,dipperData); } } @@ -77,9 +74,6 @@ public class DipperDataAsyncTaskServiceImpl implements IDipperDataAsyncTaskServi @Override @Async("asyncServiceExecutor") public String getAstEPH(){ - if (redisUtil == null) { - redisUtil = new RedisUtil(); - } return (String)redisUtil.get(DIPPER_DATA_KEY); } }