Skip to content

Commit

Permalink
Update periodicalexecutor.go (zeromicro#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
almas1992 authored Jan 14, 2021
1 parent eca4ed2 commit c77b848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/executors/periodicalexecutor.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func NewPeriodicalExecutor(interval time.Duration, container TaskContainer) *Per
container: container,
confirmChan: make(chan lang.PlaceholderType),
newTicker: func(d time.Duration) timex.Ticker {
return timex.NewTicker(interval)
return timex.NewTicker(d)
},
}
proc.AddShutdownListener(func() {
Expand Down

0 comments on commit c77b848

Please sign in to comment.