diff options
| author | x1957 <fangyuhao@gmail.com> | 2017-07-31 18:31:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-31 18:31:23 +0800 |
| commit | 4572117a42b83d2a24bd2fd662a03a671486d093 (patch) | |
| tree | 3fb4e8803eb4f5578fd7ecae2c5e799d1d83d006 | |
| parent | f0b0ce0472825ee6ca74c9ec9906b955402325b1 (diff) | |
format the code in controller.md
adds space before {
| -rw-r--r-- | contributors/devel/controllers.md | 4 |
1 files 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 |
