Skip to main content

peer_key

Function peer_key 

Source
fn peer_key(
    install_id: &str,
    hostname: &str,
    channel: &str,
    address: &str,
    port: u16,
) -> String
Expand description

What tells one peer from another in the sync’s bookkeeping. Not the discovery’s instance_id: on a stable build it is the version (v0.60.35), the same on every machine running it, so peers that share a version shared one record, and a pass that had synced one counted the others as synced too (only one peer in ten minutes got anything). The install and the channel are the machine’s own; an install that does not announce an id is told apart by its name, channel and address.