Skip to content

Commit

Permalink
Removed a panic statement for issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
keithknott26 committed Mar 11, 2023
1 parent a206c2f commit fc97fc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion row.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,8 @@ func periodic(ctx context.Context, interval time.Duration, fn func() error) {
select {
case <-ticker.C:
if err := fn(); err != nil {
panic(err)
// panic(err)
return
}
case <-ctx.Done():
return
Expand Down

0 comments on commit fc97fc6

Please sign in to comment.