Skip to content

Commit

Permalink
refactor: optimize variable name crontab to cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
colin404 committed Jul 21, 2022
1 parent d0ba864 commit ad51512
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/watcher/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ func newWatchJob(redisOptions *genericoptions.RedisOptions, watcherOptions *opti

rs := redsync.New(goredis.NewPool(client))

crontab := cron.New(
cronjob := cron.New(
cron.WithSeconds(),
cron.WithChain(cron.SkipIfStillRunning(logger), cron.Recover(logger)),
)

return &watchJob{
Cron: crontab,
Cron: cronjob,
config: watcherOptions,
rs: rs,
}
Expand Down

0 comments on commit ad51512

Please sign in to comment.