Skip to content

Commit 24c5e69

Browse files
committed
chore: revert hardcoded PROTOCOL_VERSION
1 parent 8f8a64f commit 24c5e69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/chat/src/network.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub mod types;
1717

1818
use client::NetworkClient;
1919

20-
const PROTOCOL_VERSION: &str = concat!("/", "boot-node", "/", "0.5.0");
20+
const PROTOCOL_VERSION: &str = concat!("/", env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION"));
2121

2222
#[derive(NetworkBehaviour)]
2323
struct Behaviour {

0 commit comments

Comments
 (0)