diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2024-01-11 15:54:00 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2024-01-12 00:09:31 +0000 |
commit | 6deb0bd31a882e62eda2b0e3bebb27c14ee8f72b (patch) | |
tree | d049cde6f7935c9ae050c62023340abac8e4e39a | |
parent | 2c0aed8c500a30378514c19937aa4065e580f556 (diff) | |
download | arti-6deb0bd31a882e62eda2b0e3bebb27c14ee8f72b.tar.gz arti-6deb0bd31a882e62eda2b0e3bebb27c14ee8f72b.zip |
state_dir sketch: Reference the slug ticket
-rw-r--r-- | crates/tor-hsservice/src/state_dir.rs | 4 |
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 {} |