Skip to content

Commit 110cc29

Browse files
committed
chg: [exit] sleep for 30 seconds instead of exiting on emtpy queue
1 parent 46dbd20 commit 110cc29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func main() {
177177
err := errors.New("")
178178
jsonPath, err = redis.String(cr.Do("LPOP", "analyzer:"+c.redisQueue))
179179
if err != nil {
180-
log.Fatal("Queue processed")
180+
time.Sleep(30 * time.Second)
181181
}
182182
processFile(c.certPath, jsonPath)
183183

@@ -452,7 +452,7 @@ func insertCertificate(fp string, c certMapElm) (string, error) {
452452
// getFullPath takes a certificate's hash and return the full path to
453453
// its location on disk
454454
func getFullPath(c string, h string) string {
455-
return c+h
455+
return c + h
456456
}
457457

458458
func insertCertificates(fp string, s *sessionRecord) ([]string, error) {

0 commit comments

Comments
 (0)