Skip to content
Snippets Groups Projects
Commit da82c763 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

tor-netdoc: Remove unused or_port field from RS.

Part of #387
parent 6e5027f4
No related branches found
No related tags found
No related merge requests found
......@@ -34,9 +34,6 @@ struct GenericRouterStatus<D> {
identity: RsaIdentity,
/// A list of address:port values where this relay can be reached.
addrs: Vec<net::SocketAddr>,
/// Declared OR port for this relay.
#[allow(dead_code)] // This value is never used; we look at addrs instead.
or_port: u16,
/// Digest of the document for this relay.
doc_digest: D,
/// Flags applied by the authorities to this relay.
......@@ -205,7 +202,6 @@ where
nickname,
identity,
addrs,
or_port,
doc_digest,
flags,
version,
......
......@@ -124,7 +124,6 @@ impl<D: Clone> RouterStatusBuilder<D> {
if self.addrs.is_empty() {
return Err(Error::CannotBuild("No addresses"));
}
let or_port = self.addrs[0].port();
let doc_digest = self
.doc_digest
.as_ref()
......@@ -141,7 +140,6 @@ impl<D: Clone> RouterStatusBuilder<D> {
nickname,
identity,
addrs: self.addrs.clone(),
or_port,
doc_digest,
version: self.version.clone(),
protos,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment