tor-hsservice: Use real HsNickname in ipt_mgr

This commit is contained in:
Ian Jackson 2023-08-23 15:07:50 +01:00
parent 8d83a50846
commit 89fde9d400
1 changed files with 1 additions and 4 deletions

View File

@ -31,7 +31,7 @@ use tor_rtcompat::Runtime;
use crate::svc::ipt_establish;
use crate::timeout_track::{TrackingInstantOffsetNow, TrackingNow};
use crate::{FatalError, OnionServiceConfig, RendRequest, StartupError};
use crate::{FatalError, HsNickname, OnionServiceConfig, RendRequest, StartupError};
use ipt_establish::{IptEstablisher, IptParameters, IptStatus, IptStatusStatus, IptWantsToRetire};
use IptStatusStatus as ISS;
@ -45,9 +45,6 @@ const IPT_RELAY_ROTATION_TIME: RangeInclusive<Duration> = {
Duration::from_secs(DAY * 4)..=Duration::from_secs(DAY * 7)
};
/// TODO HSS make HsNickname a newtype, somewhere more central, and document it properly
type HsNickname = String;
/// Persistent local identifier for an introduction point
///
/// Changes when the IPT relay changes, or the IPT key material changes.