From b714e9f7a3526d2fe288e927179bb0a3ca6562db Mon Sep 17 00:00:00 2001 From: Guangwen Feng Date: Thu, 7 Jan 2021 11:01:04 +0800 Subject: [PATCH] Fix typo in comment Signed-off-by: Guangwen Feng --- controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/controller.go b/controller/controller.go index 1806904a6..1a87d335a 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -165,7 +165,7 @@ func (c *Controller) RunOnce(ctx context.Context) error { // MinInterval is used as window for batching events const MinInterval = 5 * time.Second -// RunOnceThrottled makes sure execution happens at most once per interval. +// ScheduleRunOnce makes sure execution happens at most once per interval. func (c *Controller) ScheduleRunOnce(now time.Time) { c.nextRunAtMux.Lock() defer c.nextRunAtMux.Unlock()