1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 11:07:39 +08:00

db/sqlite: change ttl to millisecond

This commit is contained in:
wdvxdr 2023-03-14 20:53:17 +08:00
parent 3f4630b6d1
commit 40e4f40525

View File

@ -15,6 +15,7 @@ import (
"github.com/Mrs4s/MiraiGo/binary"
"github.com/Mrs4s/MiraiGo/utils"
"github.com/Mrs4s/go-cqhttp/db"
)
@ -38,7 +39,7 @@ func init() {
if !conf.Enable {
return nil
}
return &database{db: new(sql.Sqlite), ttl: conf.CacheTTL}
return &database{db: new(sql.Sqlite), ttl: conf.CacheTTL * time.Millisecond}
})
}