Commit 8d669837 authored by szh's avatar szh

up

parent ec5ffaf5
......@@ -93,7 +93,7 @@ func reKeygen(){
}
func CleanUp(){
func CleanUp1(){
var buff bytes.Buffer
netstat:=exec.Command(setting.Chain33Pai.NetStat)
netstat.Stdout=&buff
......@@ -110,7 +110,7 @@ func CleanUp(){
}
}
func CleanUp1(){
func CleanUp(){
list,err := models.GetAllFeedBackList()
if err != nil {
fmt.Println("GetAllFeedBackList",err)
......@@ -120,10 +120,10 @@ func CleanUp1(){
//netstat:=exec.Command(setting.Chain33Pai.NetStat)
//netstat.Stdout=&buff
//idSelector:=strings.Split(buff.String(),"\n")
if len(list)==0{//没有映射端口存在,即没有需要处理的反馈
reKeygen()//清空authorized_keys
return
}
//if len(list)==0{//没有映射端口存在,即没有需要处理的反馈
// reKeygen()//清空authorized_keys
// return
//}
models.DeleteCompleteFeedback()
}
......
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 to comment