fn remote_addr_to_peer(maybe_addr: Option<SocketAddr>) -> Result<Peer, Status>