mirror of
https://github.com/pikami/cosmium.git
synced 2026-11-04 23:45:50 +00:00
Use msgpack instead of gob; Added data persistance for badger data store
This commit is contained in:
1 parent
5fe60d831a
commit
97eea30c97
8 files changed
+43
-24
No files matched your search
@@ -37,7 +37,9 @@ func CreateServerInstance(serverName *C.char, configurationJSON *C.char) int {
|
||||
var dataStore datastore.DataStore
|
||||
switch configuration.DataStore {
|
||||
case config.DataStoreBadger:
|
||||
dataStore = badgerdatastore.NewBadgerDataStore()
|
||||
dataStore = badgerdatastore.NewBadgerDataStore(badgerdatastore.BadgerDataStoreOptions{
|
||||
PersistDataFilePath: configuration.PersistDataFilePath,
|
||||
})
|
||||
default:
|
||||
dataStore = mapdatastore.NewMapDataStore(mapdatastore.MapDataStoreOptions{
|
||||
InitialDataFilePath: configuration.InitialDataFilePath,
|
||||
|
||||
Reference in new issue
Block a user