From 2db65db5d8b8f30ca5e8f6f8e2ec2485a20d7f24 Mon Sep 17 00:00:00 2001 From: mayiming <1627832236@qq.com> Date: Sun, 2 Nov 2025 01:00:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/main.go b/server/main.go index 6f1e1e22..4c48152b 100644 --- a/server/main.go +++ b/server/main.go @@ -18,6 +18,12 @@ func main() { } cache.InitCache() + defer func() { + err := cache.CloseCache() + if err != nil { + return + } + }() // 设置路由 r := router.SetupRouter(cfg)