Skip to content

Commit

Permalink
fix gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hzxuzhonghu committed Apr 2, 2019
1 parent 3ac10c2 commit cd43a97
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions pkg/controllers/job/job_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ type Controller struct {
vkClients *vkver.Clientset
kbClients *kbver.Clientset

jobInformer vkbatchinfo.JobInformer
pgInformer kbinfo.PodGroupInformer
cmdInformer vkcoreinfo.CommandInformer
jobInformer vkbatchinfo.JobInformer
pgInformer kbinfo.PodGroupInformer
cmdInformer vkcoreinfo.CommandInformer
sharedInformers informers.SharedInformerFactory

// A store of jobs
Expand Down Expand Up @@ -219,12 +219,11 @@ func (cc *Controller) Run(stopCh <-chan struct{}) {
}

func (cc *Controller) worker() {
for cc.processNextReq(){
for cc.processNextReq() {
}
}


func (cc *Controller) processNextReq()bool {
func (cc *Controller) processNextReq() bool {
obj, shutdown := cc.queue.Get()
if shutdown {
glog.Errorf("Fail to pop item from queue")
Expand Down Expand Up @@ -266,4 +265,4 @@ func (cc *Controller) processNextReq()bool {
cc.queue.Forget(req)

return true
}
}

0 comments on commit cd43a97

Please sign in to comment.