From 7accddcaf41f40ad03fdd4221e521178f4d28b8f Mon Sep 17 00:00:00 2001 From: Sargun Dhillon Date: Tue, 3 Sep 2019 10:10:35 -0700 Subject: [PATCH] Fix linting errors in node/podcontroller.go --- node/podcontroller.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/node/podcontroller.go b/node/podcontroller.go index ca788cb0f..97675b6e8 100644 --- a/node/podcontroller.go +++ b/node/podcontroller.go @@ -262,20 +262,20 @@ func (pc *PodController) Ready() <-chan struct{} { } // runWorker is a long-running function that will continually call the processNextWorkItem function in order to read and process an item on the work queue. -func (pc *PodController) runWorker(ctx context.Context, workerId string, q workqueue.RateLimitingInterface) { - for pc.processNextWorkItem(ctx, workerId, q) { +func (pc *PodController) runWorker(ctx context.Context, workerID string, q workqueue.RateLimitingInterface) { + for pc.processNextWorkItem(ctx, workerID, q) { } } // processNextWorkItem will read a single work item off the work queue and attempt to process it,by calling the syncHandler. -func (pc *PodController) processNextWorkItem(ctx context.Context, workerId string, q workqueue.RateLimitingInterface) bool { +func (pc *PodController) processNextWorkItem(ctx context.Context, workerID string, q workqueue.RateLimitingInterface) bool { // We create a span only after popping from the queue so that we can get an adequate picture of how long it took to process the item. ctx, span := trace.StartSpan(ctx, "processNextWorkItem") defer span.End() // Add the ID of the current worker as an attribute to the current span. - ctx = span.WithField(ctx, "workerId", workerId) + ctx = span.WithField(ctx, "workerId", workerID) return handleQueueItem(ctx, q, pc.syncHandler) }