Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Arti
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jill
Arti
Commits
da82c763
Commit
da82c763
authored
3 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
tor-netdoc: Remove unused or_port field from RS.
Part of #387
parent
6e5027f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
crates/tor-netdoc/src/doc/netstatus/rs.rs
+0
-4
0 additions, 4 deletions
crates/tor-netdoc/src/doc/netstatus/rs.rs
crates/tor-netdoc/src/doc/netstatus/rs/build.rs
+0
-2
0 additions, 2 deletions
crates/tor-netdoc/src/doc/netstatus/rs/build.rs
with
0 additions
and
6 deletions
crates/tor-netdoc/src/doc/netstatus/rs.rs
+
0
−
4
View file @
da82c763
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
crates/tor-netdoc/src/doc/netstatus/rs/build.rs
+
0
−
2
View file @
da82c763
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment