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