From 4cf3cd00ef219c727978746f361880dd0ae6648e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 27 Mar 2023 17:01:52 +0100 Subject: [PATCH] tor-netdir: Rename hs_time_period Change its name to hs_* like we do with things at this layer. But, it turns out, that at least for hs client connections to fetch the descriptor, I don't seem to need to call it yet ? Maybe it's not needed. --- crates/tor-netdir/src/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/tor-netdir/src/lib.rs b/crates/tor-netdir/src/lib.rs index 5a325d974..625d7803e 100644 --- a/crates/tor-netdir/src/lib.rs +++ b/crates/tor-netdir/src/lib.rs @@ -1234,13 +1234,15 @@ impl NetDir { }) } - /// Return the current onion service directory "time period". + /// Return the current hidden service directory "time period". /// /// Specifically, this returns the time period that contains the beginning /// of the validity period of this `NetDir`'s consensus. That time period - /// is the one we use when acting as an onion service client. + /// is the one we use when acting as an hidden service client. + // + // TODO HS do we need this function? #[cfg(feature = "hs-common")] - pub fn onion_service_time_period(&self) -> TimePeriod { + pub fn hs_time_period(&self) -> TimePeriod { self.hsdir_rings.current.time_period() }