Skip to content

Commit

Permalink
chore: revert hardcoded PROTOCOL_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
fbozic committed May 21, 2024
1 parent 8f8a64f commit 24c5e69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/chat/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub mod types;

use client::NetworkClient;

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

#[derive(NetworkBehaviour)]
struct Behaviour {
Expand Down

0 comments on commit 24c5e69

Please sign in to comment.