From 2f8d4443d41163c93a5340314ef100f813401d3c Mon Sep 17 00:00:00 2001 From: srcrs Date: Sat, 29 Jul 2023 13:41:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E6=AC=A1=E6=89=A7=E8=A1=8C=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E5=AD=98=E5=82=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 02b32b1..f613ce5 100644 --- a/main.go +++ b/main.go @@ -39,7 +39,7 @@ func init() { func initDB() error { var err error - options := badger.DefaultOptions("db").WithTruncate(false) + options := badger.DefaultOptions("db").WithTruncate(true) db, err = badger.Open(options) if err != nil { return err