|
@@ -85,8 +85,10 @@ func init() {
|
|
|
}
|
|
|
|
|
|
if DbConf.Elasticsearch.Doc != nil {
|
|
|
- EsDoc.Addrs = strings.Split(DbConf.Elasticsearch.Doc.Address, ",")
|
|
|
- EsDoc.I_size = DbConf.Elasticsearch.Doc.Size
|
|
|
+ EsDoc = &elastic.Elastic{
|
|
|
+ Addrs: strings.Split(DbConf.Elasticsearch.Doc.Address, ","),
|
|
|
+ I_size: DbConf.Elasticsearch.Doc.Size,
|
|
|
+ }
|
|
|
EsDoc.InitElasticSize()
|
|
|
log.Println("初始化 doc elasticsearch")
|
|
|
}
|