From d0095fd0f48f2b0fbe245beb2b4743c0ab28ee13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Fri, 2 Dec 2022 21:57:10 +0800 Subject: [PATCH] Fix close clash cache --- experimental/clashapi/cachefile/cache.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/experimental/clashapi/cachefile/cache.go b/experimental/clashapi/cachefile/cache.go index 7ca7e4c6..aa81ff8c 100644 --- a/experimental/clashapi/cachefile/cache.go +++ b/experimental/clashapi/cachefile/cache.go @@ -59,3 +59,7 @@ func (c *CacheFile) StoreSelected(group, selected string) error { return bucket.Put([]byte(group), []byte(selected)) }) } + +func (c *CacheFile) Close() error { + return c.DB.Close() +}