Skip to content

Commit

Permalink
fix: correct error message and remove unnecessary sleep on context ca…
Browse files Browse the repository at this point in the history
…ncellation
  • Loading branch information
revelaction committed Sep 19, 2024
1 parent cbf8a1a commit 4d5100f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/ical-git/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ func main() {
os.Exit(1)
}
case <-ctx.Done():
slog.Error("🔧🚨 Tick Error. Sleeping")
time.Sleep(time.Minute)
slog.Error("🔧🚨 Tick Error. Context cancelled")
scheduler.StopTimers()
ctx, cancel, scheduler = initialize(configPath)
}
Expand Down

0 comments on commit 4d5100f

Please sign in to comment.