From 8b81c7f97bc9022e82d8defde37d2c4c3849b296 Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期一, 18 十一月 2019 21:09:49 +0800
Subject: [PATCH] ---

---
 insertdata/config.go |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/insertdata/config.go b/insertdata/config.go
index 0a3bcab..a1adae7 100644
--- a/insertdata/config.go
+++ b/insertdata/config.go
@@ -25,10 +25,7 @@
 }
 
 type esindexlist struct {
-	VideoPersons   index `mapstructure:"videopersons"`
-	DbTables       index `mapstructure:"dbtables"`
-	Dbtablepersons index `mapstructure:"dbtablepersons"`
-	Personaction   index `mapstructure:"personaction"`
+	AIOcean   index `mapstructure:"aiocean"`
 }
 type index struct {
 	IndexName string `mapstructure:"index"`
@@ -54,10 +51,10 @@
 	viper.AddConfigPath("")
 	err = viper.ReadInConfig()
 	if err != nil {
-		log.Fatal("error on parsing configuration file")
+		log.Fatal("error on parsing configuration file",err)
 	}
 	viper.UnmarshalKey("es", EsInfo)
 	viper.UnmarshalKey("weedfs", WeedFs)
 	viper.UnmarshalKey("sopath",SoPath)
-	InitInsertEs()
+	//InitInsertEs()
 }
\ No newline at end of file

--
Gitblit v1.8.0