From c4bfea06be1257db43f54708fd12330b52b44ced Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期五, 06 十二月 2019 18:08:57 +0800
Subject: [PATCH] ---
---
insertdata/config.go | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/insertdata/config.go b/insertdata/config.go
index 64c6b67..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,7 +51,7 @@
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)
--
Gitblit v1.8.0