From 3bb242954b67bd234a82cea455c4819082443357 Mon Sep 17 00:00:00 2001 From: boqiu <82121246@qq.com> Date: Wed, 4 Dec 2024 17:05:46 +0800 Subject: [PATCH] only sub NewFile gossip msg --- node/network/src/types/topics.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/node/network/src/types/topics.rs b/node/network/src/types/topics.rs index a4fc80b..772d387 100644 --- a/node/network/src/types/topics.rs +++ b/node/network/src/types/topics.rs @@ -15,12 +15,12 @@ pub const ANNOUNCE_FILE_TOPIC: &str = "announce_file"; pub const ANNOUNCE_CHUNKS_TOPIC: &str = "announce_chunks"; pub const ANNOUNCE_SHARD_CONFIG_TOPIC: &str = "announce_shard_config"; -pub const CORE_TOPICS: [GossipKind; 5] = [ +pub const CORE_TOPICS: [GossipKind; 1] = [ GossipKind::NewFile, - GossipKind::FindFile, - GossipKind::FindChunks, - GossipKind::AnnounceFile, - GossipKind::AnnounceChunks, + // GossipKind::FindFile, + // GossipKind::FindChunks, + // GossipKind::AnnounceFile, + // GossipKind::AnnounceChunks, ]; /// A gossipsub topic which encapsulates the type of messages that should be sent and received over