From 8528d61a78124d3aca7582349941cca5e6db5c1e Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 24 Oct 2022 11:20:11 -0400 Subject: [PATCH] impl HasRelayIds for GuardId. --- crates/tor-guardmgr/src/ids.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/tor-guardmgr/src/ids.rs b/crates/tor-guardmgr/src/ids.rs index a9f0241ef..fab1f43c5 100644 --- a/crates/tor-guardmgr/src/ids.rs +++ b/crates/tor-guardmgr/src/ids.rs @@ -64,6 +64,15 @@ impl GuardId { } } +impl HasRelayIds for GuardId { + fn identity( + &self, + key_type: tor_linkspec::RelayIdType, + ) -> Option> { + self.0.identity(key_type) + } +} + /// Implementation type held inside of FirstHopId. /// /// This exists as a separate type from FirstHopId because Rust requires that a pub enum's variants are all public.