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())