db cache time to time.Hour

This commit is contained in:
源文雨
2023-04-11 13:59:33 +08:00
parent 28cb0491f7
commit 8050f12d51
20 changed files with 21 additions and 21 deletions

View File

@@ -66,7 +66,7 @@ func init() { // 插件主体
// 如果数据库不存在则下载
pool.db.DBPath = engine.DataFolder() + "SetuTime.db"
_, _ = engine.GetLazyData("SetuTime.db", false)
err := pool.db.Open(time.Hour * 24)
err := pool.db.Open(time.Hour)
if err != nil {
ctx.SendChain(message.Text("ERROR: ", err))
return false