1
0
Эх сурвалжийг харах

Update periodicalexecutor.go (#389)

ALMAS 4 жил өмнө
parent
commit
c77b8489d7

+ 1 - 1
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() {