This commit is contained in:
YouROK
2023-01-29 20:30:59 +03:00
parent 1f5d0ff7c8
commit ff7a374cdf

View File

@@ -1,7 +1,7 @@
package torrsearch package torrsearch
import ( import (
"log" "server/log"
"server/rutor/models" "server/rutor/models"
"strconv" "strconv"
) )
@@ -12,7 +12,9 @@ type Index map[string][]int
var idx Index var idx Index
func NewIndex(torrs []*models.TorrentDetails) { func NewIndex(torrs []*models.TorrentDetails) {
log.Println("Index torrs") if len(torrs) > 0 {
log.TLogln("Index rutor db")
}
idx = make(Index) idx = make(Index)
idx.add(torrs) idx.add(torrs)
} }