diff --git a/cmd/cmd.go b/cmd/cmd.go index d532940..f40b5d0 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -68,7 +68,9 @@ func run(cmd *cobra.Command, args []string) error { ticker := time.NewTicker(conf.Every) for range ticker.C { - domains.Tick(cmd.Context(), integrations) + ctx, cancel := context.WithTimeout(cmd.Context(), conf.Every) + domains.Tick(ctx, integrations) + cancel() } }