Skip to content

Commit

Permalink
暂时停止 publishUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Dec 11, 2024
1 parent 98a37c1 commit da7e115
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit da7e115

Please sign in to comment.