fix(manager): unable to open dbfile: out of memory

This commit is contained in:
fumiama
2021-12-24 19:52:51 +08:00
parent ae41bdb7f8
commit 1d39fd8685
2 changed files with 2 additions and 45 deletions

View File

@@ -4,6 +4,7 @@ package manager
import (
"fmt"
"math/rand"
"os"
"sort"
"strconv"
"strings"
@@ -65,6 +66,7 @@ var engine = control.Register("manager", &control.Options{
func init() { // 插件主体
go func() {
process.SleepAbout1sTo2s()
_ = os.MkdirAll(datapath, 0755)
clock = timer.NewClock(db)
err := db.Create("welcome", &welcome{})
if err != nil {