|
@@ -16,7 +16,7 @@ func InitC() {
|
|
|
}
|
|
|
|
|
|
QfwMgo85 = &MongodbSim{
|
|
|
- MongodbAddr: Config["bidding_mgo_addr"].(string),
|
|
|
+ MongodbAddr: Config["85_mgo_addr"].(string),
|
|
|
Size: IntAll(Config["mongodbPoolSize"]),
|
|
|
DbName: "qfw",
|
|
|
UserName: Config["userName"].(string),
|
|
@@ -24,8 +24,8 @@ func InitC() {
|
|
|
}
|
|
|
QfwMgo85.InitPool()
|
|
|
|
|
|
- //Client_Es, _ = elastic.NewClient(http.DefaultClient, "http://192.168.3.11:9800")
|
|
|
- Client_Es, _ = elastic.NewClient(http.DefaultClient, "http://ela.spdata.jianyu360.com")
|
|
|
+ //Client_Es, _ = elastic.NewClient(http.DefaultClient, "http://192.168.3.11:9800")"http://ela.spdata.jianyu360.com"
|
|
|
+ Client_Es, _ = elastic.NewClient(http.DefaultClient, Config["client_es"].(string))
|
|
|
|
|
|
es_type, es_index = Config["es_type"].(string), Config["es_index"].(string)
|
|
|
|