Skip to main content

topic_protocol_mismatch_message

Function topic_protocol_mismatch_message 

Source
pub fn topic_protocol_mismatch_message(
    peer: &str,
    peer_version: Option<u16>,
) -> String
Expand description

Rejection message for a topic-data peer whose binary-frame encoding is not TOPIC_DATA_PROTOCOL_VERSION.

Shared by both sides of the handshake so the wording, and the explanation of why a mismatch cannot simply be tolerated, live next to the constant they describe. peer names the other side (“client” / “coordinator”) so the message reads correctly in whichever direction it is produced.