8000 Fix linting · nginx/kubernetes-ingress@a218177 · GitHub
[go: up one dir, main page]

Skip to content

Commit a218177

Browse files
committed
Fix linting
1 parent 3f99f58 commit a218177

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

internal/configs/configurator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ func (cnf *Configurator) UpdateConfig(cfgParams *ConfigParams, resources Extende
12431243

12441244
// ReloadForBatchUpdates reloads NGINX after a batch event.
12451245
func (cnf *Configurator) ReloadForBatchUpdates(batchReloadsEnabled bool) error {
1246-
if !batchReloadsEnabled{
1246+
if !batchReloadsEnabled {
12471247
return nil
12481248
}
12491249
if err := cnf.reload(nginx.ReloadForOtherUpdate); err != nil {

internal/k8s/controller.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,9 @@ func (lbc *LoadBalancerController) sync(task task) {
10461046
if lbc.updateAllConfigsOnBatch {
10471047
lbc.updateAllConfigs()
10481048
} else {
1049-
lbc.configurator.ReloadForBatchUpdates(lbc.enableBatchReload)
1049+
if err := lbc.configurator.ReloadForBatchUpdates(lbc.enableBatchReload); err != nil {
1050+
glog.Errorf("error reloading for batch updates: %v", err)
1051+
}
10501052
}
10511053

10521054
glog.V(3).Infof("Batch sync completed")

0 commit comments

Comments
 (0)
0