Change two in-code references to the wrong feature name

As per
  https://gitlab.torproject.org/tpo/core/arti/-/issues/756
I think this is going in the wrong direction, but it is better to fix
it so that the names agree for now, pending a decision on the naming.
This commit is contained in:
Ian Jackson 2023-02-01 15:43:10 +00:00
parent 8ee04ac203
commit 155b9ed581
1 changed files with 2 additions and 2 deletions

View File

@ -606,7 +606,7 @@ impl PartialNetDir {
}
}
#[cfg(feature = "hs-common")]
#[cfg(feature = "onion-common")]
{
// TODO hs: cache the values for the hash rings if possible, maybe
// in the PartialNetDir, since we will want to use them in computing
@ -619,7 +619,7 @@ impl PartialNetDir {
}
/// Compute the hash ring(s) for this NetDir, if one is not already computed.
#[cfg(feature = "hs-common")]
#[cfg(feature = "onion-common")]
#[allow(clippy::missing_panics_doc)]
pub fn compute_ring(&mut self) {
// TODO hs: compute the ring based on the time period and shared random