aboutsummaryrefslogtreecommitdiff
path: root/cmd/monwork/main.go
diff options
context:
space:
mode:
authorGibheer <gibheer+git@zero-knowledge.org>2018-12-13 15:37:03 +0100
committerGibheer <gibheer+git@zero-knowledge.org>2018-12-13 15:37:03 +0100
commit82e582f0222b028cf45894e1f94e261bc3a6370b (patch)
tree288aeb5a5593d4e372ec2202f816fa3b171cbb80 /cmd/monwork/main.go
parente151f056ad5980d259cdc0c034176135e20c346e (diff)
monwork - add missing continues
This can lead to longer run times than necessary.
Diffstat (limited to 'cmd/monwork/main.go')
-rw-r--r--cmd/monwork/main.go2
1 files changed, 2 insertions, 0 deletions
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)