Commit 171f4b4d by mushishixian

添加异常退出恢复判断

parent 30b2e198
......@@ -191,5 +191,5 @@ func main() {
"store",
"direct",
configs.RABBITMQDSN,
}, t, 1)
}, t, 3)
}
......@@ -24,7 +24,12 @@ func init() {
}
}
func Import(wg *sync.WaitGroup) {
defer wg.Done()
defer func() {
if err := recover(); err != nil {
fmt.Println(err)
}
wg.Done()
}()
var (
excelFileName string
xlFile *xlsx.File
......
......@@ -26,7 +26,12 @@ func init() {
//导入委托方的信息(excel导入)
func Import(wg *sync.WaitGroup) {
defer wg.Done()
defer func() {
if err := recover(); err != nil {
fmt.Println(err)
}
wg.Done()
}()
var (
excelFileName string
xlFile *xlsx.File
......
......@@ -26,7 +26,12 @@ func init() {
//导入委托方的信息(excel导入)
func Import(wg *sync.WaitGroup) {
defer wg.Done()
defer func() {
if err := recover(); err != nil {
fmt.Println(err)
}
wg.Done()
}()
var (
excelFileName string
xlFile *xlsx.File
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment