mirror of
https://github.com/safing/portmaster
synced 2025-09-01 10:09:11 +00:00
Switch core databases to bbolt
This commit is contained in:
parent
c2c19abd48
commit
0af3ab2305
1 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ import (
|
|||
|
||||
// module dependencies
|
||||
_ "github.com/Safing/portbase/database/dbmodule"
|
||||
_ "github.com/Safing/portbase/database/storage/badger"
|
||||
_ "github.com/Safing/portbase/database/storage/bbolt"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -20,7 +20,7 @@ func start() error {
|
|||
_, err := database.Register(&database.Database{
|
||||
Name: "core",
|
||||
Description: "Holds core data, such as settings and profiles",
|
||||
StorageType: "badger",
|
||||
StorageType: "bbolt",
|
||||
PrimaryAPI: "",
|
||||
})
|
||||
if err != nil {
|
||||
|
@ -30,7 +30,7 @@ func start() error {
|
|||
_, err = database.Register(&database.Database{
|
||||
Name: "cache",
|
||||
Description: "Cached data, such as Intelligence and DNS Records",
|
||||
StorageType: "badger",
|
||||
StorageType: "bbolt",
|
||||
PrimaryAPI: "",
|
||||
})
|
||||
if err != nil {
|
||||
|
@ -40,7 +40,7 @@ func start() error {
|
|||
// _, err = database.Register(&database.Database{
|
||||
// Name: "history",
|
||||
// Description: "Historic event data",
|
||||
// StorageType: "badger",
|
||||
// StorageType: "bbolt",
|
||||
// PrimaryAPI: "",
|
||||
// })
|
||||
// if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue