File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,8 @@ impl P2PClient {
255
255
let addr = info. observed_addr ;
256
256
257
257
// check protocol string
258
- let protocol_ok = self . check_version_with_prefix ( & info. protocol_version , "/dria/" ) ;
258
+ // TODO: take the prefixes from a shared const
259
+ let protocol_ok = self . check_version_with_prefix ( & info. protocol_version , "dria/" ) ;
259
260
if !protocol_ok {
260
261
log:: warn!(
261
262
"Identify: Peer {} has different Identify protocol: (have {}, want {})" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use libp2p::StreamProtocol;
5
5
pub ( crate ) const P2P_KADEMLIA_PROTOCOL : StreamProtocol =
6
6
StreamProtocol :: new ( concat ! ( "/dria/kad/" , env!( "CARGO_PKG_VERSION" ) ) ) ;
7
7
8
- /// Kademlia protocol version, in the form of `dria/<version>`.
8
+ /// Protocol string, checked by Identify protocol
9
9
pub ( crate ) const P2P_PROTOCOL_STRING : & str = concat ! ( "dria/" , env!( "CARGO_PKG_VERSION" ) ) ;
10
10
11
11
mod behaviour;
You can’t perform that action at this time.
0 commit comments