From 9ef28eb53bf91bc9f6c4ef5c19291ca8386d6f69 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Thu, 19 Oct 2023 17:57:39 +0200 Subject: [PATCH] Remove unused static (#4061) --- crates/apub/src/activities/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/apub/src/activities/mod.rs b/crates/apub/src/activities/mod.rs index 936af8ad7..83e2caeb2 100644 --- a/crates/apub/src/activities/mod.rs +++ b/crates/apub/src/activities/mod.rs @@ -44,7 +44,7 @@ use lemmy_db_schema::source::{ use lemmy_db_views_actor::structs::{CommunityPersonBanView, CommunityView}; use lemmy_utils::error::{LemmyError, LemmyErrorExt, LemmyErrorType, LemmyResult}; use serde::Serialize; -use std::{ops::Deref, time::Duration}; +use std::ops::Deref; use tracing::info; use url::{ParseError, Url}; use uuid::Uuid; @@ -56,10 +56,6 @@ pub mod deletion; pub mod following; pub mod voting; -/// Amount of time that the list of dead instances is cached. This is only updated once a day, -/// so there is no harm in caching it for a longer time. -pub static DEAD_INSTANCE_LIST_CACHE_DURATION: Duration = Duration::from_secs(30 * 60); - /// Checks that the specified Url actually identifies a Person (by fetching it), and that the person /// doesn't have a site ban. #[tracing::instrument(skip_all)]