fix: panic: database is locked (5) (SQLITE_BUSY)

This commit is contained in:
fumiama 2021-12-22 18:37:41 +08:00
parent 2858d0b0a4
commit ce8d98b77d

View File

@ -67,9 +67,6 @@ var (
)
func init() { // 插件主体
go func() {
process.SleepAbout1sTo2s()
pool = newPools()
engine := control.Register("setutime", &control.Options{
DisableOnDefault: false,
Help: "涩图\n" +
@ -78,6 +75,9 @@ func init() { // 插件主体
"- 删除[涩图/二次元/风景/车万][P站图片ID]\n" +
"- >setu status",
})
go func() {
process.SleepAbout1sTo2s()
pool = newPools()
engine.OnRegex(`^来份(.*)$`, rule.FirstValueInList(pool.List)).SetBlock(true).SetPriority(20).
Handle(func(ctx *zero.Ctx) {
if !limit.Load(ctx.Event.UserID).Acquire() {