summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schlachter <t480-debian-git@schlachter.ca>2025-11-11 00:27:39 -0500
committerDavid Schlachter <t480-debian-git@schlachter.ca>2025-11-11 00:27:39 -0500
commit588579665049de998bd1800c71e72ad74ac51f76 (patch)
tree39dda39b6455633eef59f2abaaf3adeaea9e8557
parentb36d98e47cdb4939be2507cd8b72ae5df487bdf2 (diff)
Ensure we always sleep in the loop
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index bf58df2..b655142 100644
--- a/main.go
+++ b/main.go
@@ -65,7 +65,7 @@ func main() {
err = readInput(p)
if err != nil {
log.Printf("Error reading input: %s", err)
- continue
+ goto SLEEP
}
for inputLine, taskAddingJob := range jobsFromInput {
@@ -88,6 +88,7 @@ func main() {
}
}
+ SLEEP:
time.Sleep(time.Minute)
}