File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,8 @@ use crate::protocol_stack;
37
37
const ALLOWED_PROTOCOLS : & [ StreamProtocol ] = & [
38
38
#[ cfg( feature = "dcutr" ) ]
39
39
libp2p_dcutr:: PROTOCOL_NAME ,
40
- #[ cfg( feature = "gossipsub" ) ]
41
- libp2p_swarm:: StreamProtocol :: new ( "/meshsub/1.2.0" ) ,
42
- #[ cfg( feature = "gossipsub" ) ]
43
- libp2p_swarm:: StreamProtocol :: new ( "/meshsub/1.1.0" ) ,
44
- #[ cfg( feature = "gossipsub" ) ]
45
- libp2p_swarm:: StreamProtocol :: new ( "/meshsub/1.0.0" ) ,
46
- #[ cfg( feature = "gossipsub" ) ]
47
- libp2p_swarm:: StreamProtocol :: new ( "/floodsub/1.0.0" ) ,
40
+ // NOTE: Not including gossipsub here as users may configure custom protocol IDs
41
+ // via ConfigBuilder::protocol_id. Hard-coding defaults would misclassify such setups.
48
42
libp2p_identify:: PROTOCOL_NAME ,
49
43
libp2p_identify:: PUSH_PROTOCOL_NAME ,
50
44
#[ cfg( feature = "kad" ) ]
You can’t perform that action at this time.
0 commit comments