This commit is contained in:
deepzz0
2016-12-24 12:42:31 +08:00
parent 45e3c4f0c9
commit b271959b38

View File

@@ -28,9 +28,7 @@ var es *ElasticService
func init() {
es = &ElasticService{url: setting.Conf.SearchURL, c: new(http.Client)}
if setting.Conf.RunMode == setting.PROD {
initIndex()
}
initIndex()
}
func initIndex() {