From da7e1152a4b28768aabd0373346cf0433338bcff Mon Sep 17 00:00:00 2001 From: Ghost_chu Date: Wed, 11 Dec 2024 16:01:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=81=9C=E6=AD=A2=20publishU?= =?UTF-8?q?pdate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ghostchu/peerbanhelper/PeerBanHelperServer.java | 7 +++---- .../peerbanhelper/config/MainConfigUpdateScript.java | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/ghostchu/peerbanhelper/PeerBanHelperServer.java b/src/main/java/com/ghostchu/peerbanhelper/PeerBanHelperServer.java index d55335578..d3c0ff17e 100644 --- a/src/main/java/com/ghostchu/peerbanhelper/PeerBanHelperServer.java +++ b/src/main/java/com/ghostchu/peerbanhelper/PeerBanHelperServer.java @@ -4,7 +4,6 @@ import com.ghostchu.peerbanhelper.alert.AlertManager; import com.ghostchu.peerbanhelper.database.Database; import com.ghostchu.peerbanhelper.database.dao.impl.BanListDao; -import com.ghostchu.peerbanhelper.decentralized.IPFSBanListShare; import com.ghostchu.peerbanhelper.downloader.Downloader; import com.ghostchu.peerbanhelper.downloader.DownloaderLastStatus; import com.ghostchu.peerbanhelper.downloader.DownloaderLoginResult; @@ -140,8 +139,8 @@ public class PeerBanHelperServer implements Reloadable { private BanListDao banListDao; @Autowired private Laboratory laboratory; - @Autowired - private IPFSBanListShare share; +// @Autowired +// private IPFSBanListShare share; public PeerBanHelperServer() { reloadConfig(); @@ -419,7 +418,7 @@ private void saveBanList() { } try { int count = banListDao.saveBanList(BAN_LIST); - share.publishUpdate(); + //share.publishUpdate(); log.info(tlUI(Lang.SAVED_BANLIST, count)); } catch (Exception e) { log.error(tlUI(Lang.SAVE_BANLIST_FAILED), e); diff --git a/src/main/java/com/ghostchu/peerbanhelper/config/MainConfigUpdateScript.java b/src/main/java/com/ghostchu/peerbanhelper/config/MainConfigUpdateScript.java index 4dd595c74..06aa01328 100644 --- a/src/main/java/com/ghostchu/peerbanhelper/config/MainConfigUpdateScript.java +++ b/src/main/java/com/ghostchu/peerbanhelper/config/MainConfigUpdateScript.java @@ -78,7 +78,7 @@ public void pushProvidersCleanup() { @UpdateScript(version = 24) public void decentralizedConfiguration() { - conf.set("decentralized.enabled", true); + conf.set("decentralized.enabled", false); conf.set("decentralized.kubo-rpc", "/ip4/127.0.0.1/tcp/5001"); conf.set("decentralized.features.publish-banlist", 3600000); }