From 4572117a42b83d2a24bd2fd662a03a671486d093 Mon Sep 17 00:00:00 2001 From: x1957 Date: Mon, 31 Jul 2017 18:31:23 +0800 Subject: format the code in controller.md adds space before { --- contributors/devel/controllers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contributors/devel/controllers.md b/contributors/devel/controllers.md index 86c6726f..b8addd94 100644 --- a/contributors/devel/controllers.md +++ b/contributors/devel/controllers.md @@ -73,7 +73,7 @@ When you're writing controllers, there are few guidelines that will help make su Overall, your controller should look something like this: ```go -type Controller struct{ +type Controller struct { // podLister is secondary cache of pods which is used for object lookups podLister cache.StoreToPodLister @@ -82,7 +82,7 @@ type Controller struct{ queue workqueue.RateLimitingInterface } -func (c *Controller) Run(threadiness int, stopCh chan struct{}){ +func (c *Controller) Run(threadiness int, stopCh chan struct{}) { // don't let panics crash the process defer utilruntime.HandleCrash() // make sure the work queue is shutdown which will trigger workers to end -- cgit v1.2.3