Skip to content

Commit 0a4e4fe

Browse files
committed
fix WithTask method naming
Signed-off-by: Augustin Husson <[email protected]> Signed-off-by: Augustin Husson <[email protected]>
1 parent 7099d1c commit 0a4e4fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/app.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (r *Runner) WithTasks(t ...interface{}) *Runner {
142142
}
143143

144144
// WithTimerTask is the way to add different tasks that will be executed periodically at the frequency defined with the duration.
145-
func (r *Runner) WithTimerTask(duration time.Duration, t ...interface{}) *Runner {
145+
func (r *Runner) WithTimerTasks(duration time.Duration, t ...interface{}) *Runner {
146146
for _, ts := range t {
147147
r.timerTasks = append(r.timerTasks, timerTask{
148148
task: ts,
@@ -152,7 +152,7 @@ func (r *Runner) WithTimerTask(duration time.Duration, t ...interface{}) *Runner
152152
return r
153153
}
154154

155-
func (r *Runner) WithCronTask(cronSchedule string, t ...interface{}) *Runner {
155+
func (r *Runner) WithCronTasks(cronSchedule string, t ...interface{}) *Runner {
156156
for _, ts := range t {
157157
r.cronTasks = append(r.cronTasks, cronTask{
158158
task: ts,

0 commit comments

Comments
 (0)