mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
db/sqlite: change ttl to millisecond
This commit is contained in:
parent
3f4630b6d1
commit
40e4f40525
@ -15,6 +15,7 @@ import (
|
|||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/binary"
|
"github.com/Mrs4s/MiraiGo/binary"
|
||||||
"github.com/Mrs4s/MiraiGo/utils"
|
"github.com/Mrs4s/MiraiGo/utils"
|
||||||
|
|
||||||
"github.com/Mrs4s/go-cqhttp/db"
|
"github.com/Mrs4s/go-cqhttp/db"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -38,7 +39,7 @@ func init() {
|
|||||||
if !conf.Enable {
|
if !conf.Enable {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return &database{db: new(sql.Sqlite), ttl: conf.CacheTTL}
|
return &database{db: new(sql.Sqlite), ttl: conf.CacheTTL * time.Millisecond}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user