首次执行清空存储

This commit is contained in:
srcrs 2023-07-29 13:41:30 +08:00
parent 3adf1d04a8
commit 2f8d4443d4

View File

@ -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