fixed totp and go mod
This commit is contained in:
parent
ec5a376733
commit
3a3140875e
297 changed files with 52714 additions and 15245 deletions
|
|
@ -5,7 +5,6 @@ package index
|
|||
import (
|
||||
"errors"
|
||||
"git.giftfish.de/ston1th/docstore/pkg/core"
|
||||
"git.giftfish.de/ston1th/godrop/v2"
|
||||
"github.com/blevesearch/bleve"
|
||||
"github.com/blevesearch/bleve/mapping"
|
||||
"html/template"
|
||||
|
|
@ -34,10 +33,6 @@ type Index struct {
|
|||
|
||||
func NewIndex(path string) (i *Index, err error) {
|
||||
var bi bleve.Index
|
||||
err = godrop.Unveil(path, "rwc")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if _, err = os.Stat(path); os.IsNotExist(err) {
|
||||
var m *mapping.IndexMappingImpl
|
||||
m, err = createMapping()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue