From 54b05f79edfdc375c83ce190dedfa1d976f3d7d3 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 26 Dec 2024 16:20:33 +0100 Subject: [PATCH] chore: moved fn up --- upub/core/src/context.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/upub/core/src/context.rs b/upub/core/src/context.rs index db5214b..e066bcc 100644 --- a/upub/core/src/context.rs +++ b/upub/core/src/context.rs @@ -160,6 +160,11 @@ impl Context { id.starts_with(self.base()) } + #[allow(unused)] + pub fn is_relay(&self, id: &str) -> bool { + self.0.relay.sources.contains(id) || self.0.relay.sinks.contains(id) + } + pub async fn find_internal(&self, id: &str) -> Result, DbErr> { if let Some(internal) = model::object::Entity::ap_to_internal(id, self.db()).await? { return Ok(Some(Internal::Object(internal))); @@ -181,11 +186,6 @@ impl Context { waker.wake(); } } - - #[allow(unused)] - pub fn is_relay(&self, id: &str) -> bool { - self.0.relay.sources.contains(id) || self.0.relay.sinks.contains(id) - } } pub enum Internal {