Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ciarams87 committed Sep 20, 2023
1 parent 3f99f58 commit a218177
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/configs/configurator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ func (cnf *Configurator) UpdateConfig(cfgParams *ConfigParams, resources Extende

// ReloadForBatchUpdates reloads NGINX after a batch event.
func (cnf *Configurator) ReloadForBatchUpdates(batchReloadsEnabled bool) error {
if !batchReloadsEnabled{
if !batchReloadsEnabled {
return nil
}
if err := cnf.reload(nginx.ReloadForOtherUpdate); err != nil {
Expand Down
4 changes: 3 additions & 1 deletion internal/k8s/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,9 @@ func (lbc *LoadBalancerController) sync(task task) {
if lbc.updateAllConfigsOnBatch {
lbc.updateAllConfigs()
} else {
lbc.configurator.ReloadForBatchUpdates(lbc.enableBatchReload)
if err := lbc.configurator.ReloadForBatchUpdates(lbc.enableBatchReload); err != nil {
glog.Errorf("error reloading for batch updates: %v", err)
}
}

glog.V(3).Infof("Batch sync completed")
Expand Down

0 comments on commit a218177

Please sign in to comment.