aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2023-09-07 12:52:39 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2023-09-18 10:33:05 +0100
commit4dc3230e259e9e551a2b4f32c30403da85a59f46 (patch)
tree35c17493bf0aad83908d59d2ae071e7e7d308a9b
parent1bd575bcffe6599a1b3efbedc4364f217e8d7541 (diff)
downloadarti-4dc3230e259e9e551a2b4f32c30403da85a59f46.tar.gz
arti-4dc3230e259e9e551a2b4f32c30403da85a59f46.zip
tor-hsservice: ipt_set: note_publication_attempt: rename
From ..._start. The old name is confusing when you see a call site, because the actual time passed isn't the start time, but the call site looks like it ought to be.
-rw-r--r--crates/tor-hsservice/src/ipt_set.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/tor-hsservice/src/ipt_set.rs b/crates/tor-hsservice/src/ipt_set.rs
index 20711e986..0e5063faa 100644
--- a/crates/tor-hsservice/src/ipt_set.rs
+++ b/crates/tor-hsservice/src/ipt_set.rs
@@ -76,7 +76,7 @@ pub(crate) struct IptInSet {
/// If the descriptor has never been published, is `None`.
///
/// This field is updated by the publisher, using
- /// [`note_publication_attempt_start`](IptSet::note_publication_attempt_start)
+ /// [`note_publication_attempt`](IptSet::note_publication_attempt)
/// and read by the manager.
///
/// A separate copy of the information is stored by the manager,
@@ -237,7 +237,7 @@ impl IptsPublisherView {
/// Look at the list of introduction points to publish
///
/// Whenever a a publication attempt is started,
- /// [`note_publication_attempt_start`](IptSet::note_publication_attempt_start)
+ /// [`note_publication_attempt`](IptSet::note_publication_attempt)
/// must be called.
///
/// The returned value is a lock guard.
@@ -254,7 +254,7 @@ impl IptSet {
///
/// When calling this, the publisher promises that the publication attempt
/// will either complete, or be abandoned, before `worst_case_end`.
- pub(crate) fn note_publication_attempt_start(
+ pub(crate) fn note_publication_attempt(
&mut self,
worst_case_end: Instant,
) -> Result<(), FatalError> {