From 0f775341a641e0174940cba73a7cec3a5c73dd09 Mon Sep 17 00:00:00 2001 From: phiresky Date: Wed, 2 Aug 2023 23:14:32 +0000 Subject: [PATCH] swap --- crates/federate/src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/federate/src/util.rs b/crates/federate/src/util.rs index 47bb1253c..11b6f366a 100644 --- a/crates/federate/src/util.rs +++ b/crates/federate/src/util.rs @@ -120,8 +120,8 @@ pub async fn get_actor_cached( /// intern urls to reduce memory usage /// not sure if worth it pub fn intern_url<'a>(url: impl Into>) -> Arc { - let url: Cow<'a, Url> = url.into(); static INTERNED_URLS: Lazy>> = Lazy::new(DashSet::new); + let url: Cow<'a, Url> = url.into(); return INTERNED_URLS .get::(url.borrow()) .map(|e| e.clone())