From 82e582f0222b028cf45894e1f94e261bc3a6370b Mon Sep 17 00:00:00 2001 From: Gibheer Date: Thu, 13 Dec 2018 15:37:03 +0100 Subject: monwork - add missing continues This can lead to longer run times than necessary. --- cmd/monwork/main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd/monwork/main.go') diff --git a/cmd/monwork/main.go b/cmd/monwork/main.go index d7f0791..782baf7 100644 --- a/cmd/monwork/main.go +++ b/cmd/monwork/main.go @@ -74,6 +74,7 @@ func startNodeGen(db *sql.DB, checkInterval time.Duration) { log.Printf("could not update nodes: %s", err) tx.Rollback() time.Sleep(checkInterval) + continue } if err := tx.Commit(); err != nil { log.Printf("could not commit node updates: %s", err) @@ -100,6 +101,7 @@ func startCommandGen(db *sql.DB, checkInterval time.Duration) { log.Printf("could not update checks: %s", err) tx.Rollback() time.Sleep(checkInterval) + continue } if err := tx.Commit(); err != nil { log.Printf("could not commit command updates: %s", err) -- cgit v1.2.3-70-g09d2