compile tags regex once

This commit is contained in:
ston1th 2019-08-24 20:29:43 +02:00
commit 7686dfa474
5 changed files with 27 additions and 10 deletions

View file

@ -20,9 +20,9 @@ const (
pathPrefix = "path/"
)
func (db *DB) Reindex(path string, match []core.Tag) (err error) {
func (db *DB) Reindex(path string, match []core.RTag) (err error) {
if match == nil {
match, err = db.GetAllTags()
match, err = db.GetAllRTags()
if err != nil {
return
}
@ -53,7 +53,7 @@ func (db *DB) ReindexAll() (err error) {
if err != nil {
return
}
match, err := db.GetAllTags()
match, err := db.GetAllRTags()
if err != nil {
return
}