Commit 6dd5d1e9 authored by szh's avatar szh

add return

parent 9ac92630
...@@ -337,12 +337,13 @@ func closeNode() error { ...@@ -337,12 +337,13 @@ func closeNode() error {
return nil return nil
} }
func updateJobMap(id int32,err error) { func updateJobMap(id int32,err error) bool {
if _,exists:= JobDoneMap[id];!exists { if _,exists:= JobDoneMap[id];!exists {
JobDoneMap[id] = err.Error() JobDoneMap[id] = err.Error()
return return true
} }
tlog.Error("updateJobMap error","jobid",id) tlog.Error("updateJobMap error","jobid",id)
return false
} }
func MakeSureBtyIsNotRun() bool { func MakeSureBtyIsNotRun() bool {
......
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