Allow starting the bot even after the persistence was improperly closed
This commit is contained in:
parent
2be20880b8
commit
58307c9743
|
@ -4,7 +4,7 @@ import org.mapdb.DBMaker
|
|||
import org.mapdb.Serializer
|
||||
|
||||
object Dao {
|
||||
private val db = DBMaker.fileDB("kagebot.db").fileMmapEnable().closeOnJvmShutdown().make()
|
||||
private val db = DBMaker.fileDB("kagebot.db").checksumHeaderBypass().fileMmapEnable().closeOnJvmShutdown().make()
|
||||
private val prisoners = db.hashMap("timeout", Serializer.LONG, Serializer.LONG_ARRAY).createOrOpen()
|
||||
private val commands = db.hashMap("commands", Serializer.STRING, Serializer.INTEGER).createOrOpen()
|
||||
private val tempVcs = db.hashSet("vcs", Serializer.STRING).createOrOpen()
|
||||
|
|
Loading…
Reference in New Issue
Block a user