From 0d254d26e3ec180d4281ba47c4439cea2f86eb01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E9=93=AD?= Date: Fri, 17 Feb 2023 00:15:27 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20stat.go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stat.go | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 stat.go diff --git a/stat.go b/stat.go deleted file mode 100644 index 18eb61e..0000000 --- a/stat.go +++ /dev/null @@ -1,19 +0,0 @@ -package dget - -import ( - "os" - "path/filepath" - - "github.com/boltdb/bolt" -) - -var cache *bolt.DB - -func initCache() error { - db, err := bolt.Open(filepath.Join(os.TempDir(), "fb-runner.db"), 0600, nil) - if err != nil { - return err - } - cache = db - return nil -}