compile tags regex once
This commit is contained in:
parent
f599483aab
commit
7686dfa474
5 changed files with 27 additions and 10 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue