Skip to content

Commit

Permalink
Added Comment for isOptimizePossible
Browse files Browse the repository at this point in the history
Signed-off-by: Shoaeb Jindani <[email protected]>
  • Loading branch information
Shoaeb Jindani committed Oct 25, 2023
1 parent 6230b12 commit 876e6ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/restart/staggerrestarts/staggerrestarts.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ func (s *StaggerRestartsService) RestartImmediately(componentType string, instan
return nil
}

// this method checks if actually optimization is possible on the components and if restarts can be clubbed.
func isOptimizePossible(restartConfig *RestartConfig) bool {
canOptimize := false
var listOfMspCRName []string
Expand Down

0 comments on commit 876e6ea

Please sign in to comment.