From c77b8489d719f0e83eb0b0e87d658d154f36f84d Mon Sep 17 00:00:00 2001 From: ALMAS Date: Thu, 14 Jan 2021 22:20:09 +0800 Subject: [PATCH] Update periodicalexecutor.go (#389) --- core/executors/periodicalexecutor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/executors/periodicalexecutor.go b/core/executors/periodicalexecutor.go index f797dfc2..61319fc2 100644 --- a/core/executors/periodicalexecutor.go +++ b/core/executors/periodicalexecutor.go @@ -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() {