From 67ce51a101f1721b171fa8679267bf4f912a0a30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Neven=20Jacmenovi=C4=87?= Date: Wed, 14 Jun 2017 00:30:51 +0200 Subject: cleanup --- system/db/init.go | 14 +------------- 1 file changed, 1 insertion(+), 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() { -- cgit v1.2.3