aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2024-01-11 15:54:00 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2024-01-12 00:09:31 +0000
commit6deb0bd31a882e62eda2b0e3bebb27c14ee8f72b (patch)
treed049cde6f7935c9ae050c62023340abac8e4e39a
parent2c0aed8c500a30378514c19937aa4065e580f556 (diff)
downloadarti-6deb0bd31a882e62eda2b0e3bebb27c14ee8f72b.tar.gz
arti-6deb0bd31a882e62eda2b0e3bebb27c14ee8f72b.zip
state_dir sketch: Reference the slug ticket
-rw-r--r--crates/tor-hsservice/src/state_dir.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/tor-hsservice/src/state_dir.rs b/crates/tor-hsservice/src/state_dir.rs
index b2f740ac5..27a1afe56 100644
--- a/crates/tor-hsservice/src/state_dir.rs
+++ b/crates/tor-hsservice/src/state_dir.rs
@@ -344,6 +344,10 @@ impl TryFrom<String> for InstanceIdString {
// it would involve an Arc<Mutex<SlugsInUseTable>> in InstanceStateHnndle and StorageHandle,
// and Drop impls to remove unused entries (and `raw_subdir` would have imprecise checking
// unless it returned a Drop newtype around CheckedDir).
+//
+// TODO #1192 for now we are using the name Slug here.
+// When we implement this we may wish to unify parts of the implementation
+// with any general facility that arises from #1192.
pub trait Slug: ToString {}
impl<T: ToString + ?Sized> Slug for T {}