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); }