Update periodicalexecutor.go (#389)

master
ALMAS 4 years ago committed by GitHub
parent eca4ed2cc0
commit c77b8489d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -51,7 +51,7 @@ func NewPeriodicalExecutor(interval time.Duration, container TaskContainer) *Per
container: container, container: container,
confirmChan: make(chan lang.PlaceholderType), confirmChan: make(chan lang.PlaceholderType),
newTicker: func(d time.Duration) timex.Ticker { newTicker: func(d time.Duration) timex.Ticker {
return timex.NewTicker(interval) return timex.NewTicker(d)
}, },
} }
proc.AddShutdownListener(func() { proc.AddShutdownListener(func() {

Loading…
Cancel
Save