From 9aa8b0aae087c163f7b791a8ad51edcc1fbb26c3 Mon Sep 17 00:00:00 2001 From: Hamza Khalid Date: Fri, 13 Dec 2024 01:03:37 +0500 Subject: [PATCH] Update Protocol Name --- packages/ciphernode/net/src/network_peer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ciphernode/net/src/network_peer.rs b/packages/ciphernode/net/src/network_peer.rs index ee10cbd4..a5be7edb 100644 --- a/packages/ciphernode/net/src/network_peer.rs +++ b/packages/ciphernode/net/src/network_peer.rs @@ -129,10 +129,10 @@ fn create_mdns_kad_behaviour( ) -> std::result::Result> { let connection_limits = connection_limits::Behaviour::new(ConnectionLimits::default()); let identify_config = IdentifyBehaviour::new( - identify::Config::new("/ipfs/kad/1.0.0".into(), key.public()) + identify::Config::new("/kad/1.0.0".into(), key.public()) .with_interval(Duration::from_secs(60)), ); - let kad_config = kad::Config::new(StreamProtocol::new("/ipfs/kad/1.0.0")); + let kad_config = kad::Config::new(StreamProtocol::new("/kad/1.0.0")); let message_id_fn = |message: &gossipsub::Message| { let mut s = DefaultHasher::new();