From 89fde9d40093bdbcc02741bc4f7baf54b20328d6 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 23 Aug 2023 15:07:50 +0100 Subject: [PATCH] tor-hsservice: Use real HsNickname in ipt_mgr --- crates/tor-hsservice/src/ipt_mgr.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/tor-hsservice/src/ipt_mgr.rs b/crates/tor-hsservice/src/ipt_mgr.rs index 211fc07ac..7955f3e03 100644 --- a/crates/tor-hsservice/src/ipt_mgr.rs +++ b/crates/tor-hsservice/src/ipt_mgr.rs @@ -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::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.