summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorNeven Jacmenović <neven@nivas.hr>2017-06-14 00:30:51 +0200
committerNeven Jacmenović <neven@nivas.hr>2017-06-14 00:30:51 +0200
commit67ce51a101f1721b171fa8679267bf4f912a0a30 (patch)
tree817b9e91f8260419d41a86e26337f2ea21779c92 /system
parent81e1682818b96851a98426de89cbc31441049b24 (diff)
cleanup
Diffstat (limited to 'system')
-rw-r--r--system/db/init.go14
1 files changed, 1 insertions, 13 deletions
diff --git a/system/db/init.go b/system/db/init.go
index 4f35bbc..48ae641 100644
--- a/system/db/init.go
+++ b/system/db/init.go
@@ -84,23 +84,11 @@ func Init() {
if err != nil {
log.Fatalln("Failed to invalidate cache.", err)
}
-
- go func() {
- for t := range item.Types {
- err := search.MapIndex(t)
- if err != nil {
- log.Fatalln(err)
- return
- }
-
- SortContent(t)
- }
- }()
}
// InitSearchIndex initializes Search Index for search to be functional
// This was moved out of db.Init and put to main(), because addon checker was initializing db together with
-// search indexing initialisation in time when there were no item.Types defined so search index was always
+// search indexing initialisation in time when there were no item.Types defined so search index was always
// empty when using addons. We still have no guarentee whatsoever that item.Types is defined
// Should be called from a goroutine after SetContent is successful (SortContent requirement)
func InitSearchIndex() {