chg: [exit] sleep for 30 seconds instead of exiting on emtpy queue
parent
46dbd20e4b
commit
110cc29d18
2
main.go
2
main.go
|
@ -177,7 +177,7 @@ func main() {
|
||||||
err := errors.New("")
|
err := errors.New("")
|
||||||
jsonPath, err = redis.String(cr.Do("LPOP", "analyzer:"+c.redisQueue))
|
jsonPath, err = redis.String(cr.Do("LPOP", "analyzer:"+c.redisQueue))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("Queue processed")
|
time.Sleep(30 * time.Second)
|
||||||
}
|
}
|
||||||
processFile(c.certPath, jsonPath)
|
processFile(c.certPath, jsonPath)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue