From 0f0c3997c03bab77d3a054c26d3fad6a8fdef819 Mon Sep 17 00:00:00 2001 From: xing Date: Sat, 25 Feb 2023 23:14:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/pkg/cache/cache.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/pkg/cache/cache.go b/internal/pkg/cache/cache.go index 8d683cb..6c3617e 100644 --- a/internal/pkg/cache/cache.go +++ b/internal/pkg/cache/cache.go @@ -46,8 +46,6 @@ var allUsernameCache *cache.VarCache[map[string]struct{}] var headerImagesCache *cache.MapCache[string, []models.PostThumbnail] -var ctx context.Context - func InitActionsCommonCache() { c := config.GetConfig() archivesCaches = &Arch{ @@ -95,8 +93,6 @@ func InitActionsCommonCache() { newCommentCache = cachemanager.MapCacheBy[string, string](nil, 15*time.Minute) - ctx = context.Background() - InitFeed() }