Commit 68b7d1f4 authored by szh's avatar szh

rollback change to chan

parent 19be3a76
......@@ -13,7 +13,7 @@ var RollChan chan bool
func RollbackJob() {
for {
if value,err := <- RollChan;err != nil {
if value,ok := <- RollChan; ok {
if !value {
continue
}
......
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