|
@@ -2,7 +2,6 @@ package utils
|
|
|
|
|
|
import (
|
|
|
"github.com/olivere/elastic/v7"
|
|
|
- "hongze/hongze_edb_lib/services/alarm_msg"
|
|
|
)
|
|
|
|
|
|
var EsClient *elastic.Client
|
|
@@ -20,7 +19,8 @@ func init() {
|
|
|
elastic.SetSniff(false))
|
|
|
EsClient = client
|
|
|
if err != nil {
|
|
|
- go alarm_msg.SendAlarmMsg("ElasticSearch连接失败", 2)
|
|
|
+ panic("ElasticSearch连接失败")
|
|
|
+ //go alarm_msg.SendAlarmMsg("ElasticSearch连接失败", 2)
|
|
|
}
|
|
|
return
|
|
|
}
|