fixed totp and go mod
This commit is contained in:
parent
ec5a376733
commit
3a3140875e
297 changed files with 52714 additions and 15245 deletions
|
|
@ -6,7 +6,6 @@ import (
|
|||
"git.giftfish.de/ston1th/docstore/pkg/core"
|
||||
"git.giftfish.de/ston1th/docstore/pkg/index"
|
||||
"git.giftfish.de/ston1th/docstore/pkg/store"
|
||||
"git.giftfish.de/ston1th/godrop/v2"
|
||||
"io"
|
||||
"path/filepath"
|
||||
)
|
||||
|
|
@ -26,10 +25,6 @@ type DB struct {
|
|||
func New(cfg core.Config) (db *DB, err error) {
|
||||
db = new(DB)
|
||||
dbFile := filepath.Join(cfg.RunDir, storeFile)
|
||||
err = godrop.Unveil(dbFile, "rwc")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
db.store, err = store.NewBoltStore(dbFile, nil)
|
||||
if err != nil {
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue