diff options
| author | David Schlachter <t480-debian-git@schlachter.ca> | 2025-11-11 00:27:39 -0500 |
|---|---|---|
| committer | David Schlachter <t480-debian-git@schlachter.ca> | 2025-11-11 00:27:39 -0500 |
| commit | 588579665049de998bd1800c71e72ad74ac51f76 (patch) | |
| tree | 39dda39b6455633eef59f2abaaf3adeaea9e8557 | |
| parent | b36d98e47cdb4939be2507cd8b72ae5df487bdf2 (diff) | |
Ensure we always sleep in the loop
| -rw-r--r-- | main.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) } |
